Cargo clippy
This commit is contained in:
parent
4b8c9fdfdc
commit
777b8814f5
@ -44,8 +44,7 @@ impl<'a> SessionIdentity<'a> {
|
||||
|
||||
fn get_session_data(&self) -> Option<SessionIdentityData> {
|
||||
let mut res: Option<SessionIdentityData> = self.0.identity()
|
||||
.as_ref()
|
||||
.map(String::as_str)
|
||||
.as_deref()
|
||||
.map(serde_json::from_str)
|
||||
.map(|f| f.expect("Failed to deserialize session data!"));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user