diff --git a/src/async_client.rs b/src/async_client.rs index ed1831f7..039a29ad 100644 --- a/src/async_client.rs +++ b/src/async_client.rs @@ -352,7 +352,7 @@ impl AsyncClient { futures.push(Box::new(future)); } - /// Add a callback that will be called every time the client receives a room + /// Add a callback that will be called every time the client receives a presence /// event /// /// # Arguments @@ -433,9 +433,9 @@ impl AsyncClient { /// * `password` - The password of the user. /// /// * `device_id` - A unique id that will be associated with this session. If - /// not given the homeserver will create one. Can be an exising + /// not given the homeserver will create one. Can be an existing /// device_id from a previous login call. Note that this should be done - /// only if the client also holds the encryption keys for this devcie. + /// only if the client also holds the encryption keys for this device. #[instrument(skip(password))] pub async fn login + std::fmt::Debug>( &mut self, @@ -462,7 +462,7 @@ impl AsyncClient { Ok(response) } - /// Synchronise the client's state with the latest state on the server. + /// Synchronize the client's state with the latest state on the server. /// /// # Arguments /// diff --git a/src/models/room_member.rs b/src/models/room_member.rs index c6803f5d..c5319a6c 100644 --- a/src/models/room_member.rs +++ b/src/models/room_member.rs @@ -13,9 +13,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -use std::collections::HashMap; -use std::sync::{Arc, RwLock}; - use super::User; use crate::api::r0 as api; use crate::events::collections::all::{Event, RoomEvent, StateEvent}; diff --git a/tests/async_client_tests.rs b/tests/async_client_tests.rs index 0c213d0c..3811c3f9 100644 --- a/tests/async_client_tests.rs +++ b/tests/async_client_tests.rs @@ -88,5 +88,5 @@ async fn timeline() { client.get_room_name("!SVkFJHzfwvuaIEawgC:localhost").await ); - println!("{:#?}", &client.base_client().read().await.joined_rooms); + // println!("{:#?}", &client.base_client().read().await.joined_rooms); }