Fix formatting
This commit is contained in:
parent
aa3e7416a9
commit
abeb2160ad
@ -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<DeviceId>) -> 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.
|
||||
|
@ -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};
|
||||
|
Loading…
x
Reference in New Issue
Block a user