mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-07 23:44:53 -04:00
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>