mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-16 20:49:05 -04:00
sdk: Disable new rustc warnings
The issue here seems to be that the `panic!` and `unreachable!()` macros used in the tests return `!`. In the future, `!` will not fallback to `()`, which is what `dependency_on_unit_never_type_fallback` checks. `add_event_handler` expects a function that returns an `EventHandlerResult`, but it is only implemented for `()`, not for `!`. A solution could be to implement that trait for `!` but it is an unstable feature right now. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
committed by
Damir Jelić
parent
a31d362137
commit
56739202cf
@@ -692,6 +692,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[async_test]
|
||||
#[allow(dependency_on_unit_never_type_fallback)]
|
||||
async fn add_room_event_handler() -> crate::Result<()> {
|
||||
let client = logged_in_client(None).await;
|
||||
|
||||
@@ -753,6 +754,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[async_test]
|
||||
#[allow(dependency_on_unit_never_type_fallback)]
|
||||
async fn remove_event_handler() -> crate::Result<()> {
|
||||
let client = logged_in_client(None).await;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user