File tree 2 files changed +159
-139
lines changed
matrix-sdk/src/event_cache
matrix-sdk-ui/src/timeline/tests
2 files changed +159
-139
lines changed Original file line number Diff line number Diff line change 16
16
17
17
use std:: {
18
18
collections:: { BTreeMap , HashMap } ,
19
+ future:: Future ,
19
20
sync:: Arc ,
20
21
} ;
21
22
@@ -303,20 +304,21 @@ impl TestRoomDataProvider {
303
304
}
304
305
}
305
306
306
- #[ cfg_attr( target_arch = "wasm32" , async_trait:: async_trait( ?Send ) ) ]
307
- #[ cfg_attr( not( target_arch = "wasm32" ) , async_trait:: async_trait) ]
308
307
impl PaginableRoom for TestRoomDataProvider {
309
- async fn event_with_context (
308
+ fn event_with_context (
310
309
& self ,
311
310
_event_id : & EventId ,
312
311
_lazy_load_members : bool ,
313
312
_num_events : UInt ,
314
- ) -> Result < EventWithContextResponse , PaginatorError > {
315
- unimplemented ! ( ) ;
313
+ ) -> impl Future < Output = Result < EventWithContextResponse , PaginatorError > > {
314
+ async { unimplemented ! ( ) }
316
315
}
317
316
318
- async fn messages ( & self , _opts : MessagesOptions ) -> Result < Messages , PaginatorError > {
319
- unimplemented ! ( ) ;
317
+ fn messages (
318
+ & self ,
319
+ _opts : MessagesOptions ,
320
+ ) -> impl Future < Output = Result < Messages , PaginatorError > > {
321
+ async { unimplemented ! ( ) }
320
322
}
321
323
}
322
324
You can’t perform that action at this time.
0 commit comments