🚨 Fix some clippy warnings
This commit is contained in:
@@ -52,6 +52,7 @@ impl Account {
|
||||
self.messaging_provider = Some(provider.clone());
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn get_room(&self, room_id: &RoomId) -> Option<Rc<Room>> {
|
||||
self.by_id_rooms.borrow().get(room_id).cloned()
|
||||
}
|
||||
|
@@ -118,6 +118,7 @@ impl Room {
|
||||
&self.id
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn name(&self) -> Option<String> {
|
||||
self.name.borrow().clone()
|
||||
}
|
||||
|
@@ -65,6 +65,7 @@ impl Space {
|
||||
&self.id
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn name(&self) -> Option<String> {
|
||||
self.name.borrow().clone()
|
||||
}
|
||||
|
@@ -28,7 +28,10 @@ pub trait RoomStoreConsumerInterface {
|
||||
fn id(&self) -> &RoomId;
|
||||
fn is_direct(&self) -> Option<bool>;
|
||||
fn name(&self) -> Option<String>;
|
||||
|
||||
#[allow(dead_code)]
|
||||
async fn avatar(&self) -> Option<Avatar>;
|
||||
|
||||
fn spaces(&self) -> &Vec<SpaceId>;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user