chore(sdk): Simplify remove_event_handler test
@@ -815,12 +815,8 @@ mod tests {
.await;
let handle = client
- .add_event_handler({
- move |_ev: OriginalSyncRoomMemberEvent| {
+ .add_event_handler(move |_ev: OriginalSyncRoomMemberEvent| async {
panic!("handler should have been removed");
- #[allow(unreachable_code)]
- future::ready(())
- }
})
.await;
