diff --git a/ruma-client/src/session.rs b/ruma-client/src/session.rs index 8a540204..41cbdba8 100644 --- a/ruma-client/src/session.rs +++ b/ruma-client/src/session.rs @@ -25,10 +25,7 @@ impl Session { /// Create a new user session from an access token and a user ID. #[deprecated] pub fn new(access_token: String, user_id: UserId, device_id: Box) -> Self { - Self { - access_token, - identification: Some(Identification { user_id, device_id }), - } + Self { access_token, identification: Some(Identification { user_id, device_id }) } } /// Get the access token associated with this session. diff --git a/ruma-identifiers-validation/src/crypto_algorithms.rs b/ruma-identifiers-validation/src/crypto_algorithms.rs index 00da190c..fc23a897 100644 --- a/ruma-identifiers-validation/src/crypto_algorithms.rs +++ b/ruma-identifiers-validation/src/crypto_algorithms.rs @@ -1,7 +1,9 @@ //! Key algorithms used in Matrix spec. -use std::convert::TryFrom; -use std::fmt::{Display, Formatter, Result as FmtResult}; +use std::{ + convert::TryFrom, + fmt::{Display, Formatter, Result as FmtResult}, +}; #[cfg(feature = "serde")] use serde::{Deserialize, Serialize};