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> {
|
fn get_session_data(&self) -> Option<SessionIdentityData> {
|
||||||
let mut res: Option<SessionIdentityData> = self.0.identity()
|
let mut res: Option<SessionIdentityData> = self.0.identity()
|
||||||
.as_ref()
|
.as_deref()
|
||||||
.map(String::as_str)
|
|
||||||
.map(serde_json::from_str)
|
.map(serde_json::from_str)
|
||||||
.map(|f| f.expect("Failed to deserialize session data!"));
|
.map(|f| f.expect("Failed to deserialize session data!"));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user