From a96286a5ff2626351eef2ffc749d81f678c24ff0 Mon Sep 17 00:00:00 2001 From: Devin R Date: Thu, 2 Apr 2020 18:22:52 -0400 Subject: [PATCH] remove calculate in docs, fix unused imports --- src/async_client.rs | 2 +- src/base_client.rs | 3 +-- src/models/room.rs | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/async_client.rs b/src/async_client.rs index 9c914310..2cd458e1 100644 --- a/src/async_client.rs +++ b/src/async_client.rs @@ -20,7 +20,7 @@ use std::sync::atomic::{AtomicU64, Ordering}; use std::sync::Arc; use std::time::{Duration, Instant}; -use futures::future::{BoxFuture, Future, FutureExt}; +use futures::future::Future; use tokio::sync::RwLock; use tokio::time::delay_for as sleep; use tracing::{debug, info, instrument, trace}; diff --git a/src/base_client.rs b/src/base_client.rs index 3c98a879..44ebfdad 100644 --- a/src/base_client.rs +++ b/src/base_client.rs @@ -14,7 +14,6 @@ // limitations under the License. use std::collections::{HashMap, HashSet}; -use std::convert::TryFrom; use std::fmt; use std::sync::Arc; @@ -30,7 +29,7 @@ use crate::events::collections::only::Event as NonRoomEvent; use crate::events::ignored_user_list::IgnoredUserListEvent; use crate::events::push_rules::{PushRulesEvent, Ruleset}; use crate::events::EventResult; -use crate::identifiers::{RoomAliasId, UserId as Uid}; +use crate::identifiers::RoomAliasId; use crate::models::Room; use crate::session::Session; use crate::EventEmitter; diff --git a/src/models/room.rs b/src/models/room.rs index 4739ca18..e23adb0b 100644 --- a/src/models/room.rs +++ b/src/models/room.rs @@ -140,7 +140,7 @@ impl Room { } } - /// Calculate and return the display name of the room. + /// Return the display name of the room. pub fn calculate_name(&self) -> String { self.room_name.calculate_name(&self.room_id, &self.members) } @@ -237,7 +237,7 @@ impl Room { } } - fn handle_encryption_event(&mut self, event: &EncryptionEvent) -> bool { + fn handle_encryption_event(&mut self, _event: &EncryptionEvent) -> bool { self.encrypted = true; true }