From abeb2160ad2afbdc07d7b7c7121e508622e6e709 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 11 Aug 2020 01:57:53 +0200 Subject: [PATCH] Fix formatting --- ruma-client/src/session.rs | 5 +---- ruma-identifiers-validation/src/crypto_algorithms.rs | 6 ++++-- 2 files changed, 5 insertions(+), 6 deletions(-) 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};