Cargo clippy

This commit is contained in:
Pierre HUBERT 2022-04-02 08:31:48 +02:00
parent 4b8c9fdfdc
commit 777b8814f5

View File

@ -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!"));