File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
bindings/matrix-sdk-ffi/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ impl SlidingSyncRoom {
179
179
}
180
180
181
181
pub fn unread_notifications ( & self ) -> Arc < UnreadNotificationsCount > {
182
- Arc :: new ( self . inner . unread_notifications ( ) . clone ( ) . into ( ) )
182
+ Arc :: new ( self . inner . unread_notifications ( ) . into ( ) )
183
183
}
184
184
185
185
pub fn full_room ( & self ) -> Option < Arc < Room > > {
@@ -215,7 +215,7 @@ impl SlidingSyncRoom {
215
215
let ( items, mut stoppable_spawn) = self . add_timeline_listener_inner ( listener) ?;
216
216
let room_id = self . inner . room_id ( ) . to_owned ( ) ;
217
217
218
- self . runner . subscribe ( room_id. to_owned ( ) . clone ( ) , settings. map ( Into :: into) ) ?;
218
+ self . runner . subscribe ( room_id. clone ( ) , settings. map ( Into :: into) ) ?;
219
219
220
220
let runner = self . runner . clone ( ) ;
221
221
stoppable_spawn. set_finalizer ( Box :: new ( move || runner. unsubscribe ( room_id) . unwrap ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments