Fix formatting

This commit is contained in:
Jonas Platte 2020-08-11 01:57:53 +02:00
parent aa3e7416a9
commit abeb2160ad
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
2 changed files with 5 additions and 6 deletions

View File

@ -25,10 +25,7 @@ impl Session {
/// Create a new user session from an access token and a user ID. /// Create a new user session from an access token and a user ID.
#[deprecated] #[deprecated]
pub fn new(access_token: String, user_id: UserId, device_id: Box<DeviceId>) -> Self { pub fn new(access_token: String, user_id: UserId, device_id: Box<DeviceId>) -> Self {
Self { Self { access_token, identification: Some(Identification { user_id, device_id }) }
access_token,
identification: Some(Identification { user_id, device_id }),
}
} }
/// Get the access token associated with this session. /// Get the access token associated with this session.

View File

@ -1,7 +1,9 @@
//! Key algorithms used in Matrix spec. //! Key algorithms used in Matrix spec.
use std::convert::TryFrom; use std::{
use std::fmt::{Display, Formatter, Result as FmtResult}; convert::TryFrom,
fmt::{Display, Formatter, Result as FmtResult},
};
#[cfg(feature = "serde")] #[cfg(feature = "serde")]
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};