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.
|
/// 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.
|
||||||
|
@ -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};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user