Fix clippy warnings
This commit is contained in:
parent
666a5bb068
commit
cb996d8460
@ -21,11 +21,11 @@ where
|
||||
T: DeserializeOwned,
|
||||
{
|
||||
cookies.get(FLASH_COOKIE_NAME).and_then(|flash_cookie| {
|
||||
(if let Ok(ValuedMessage::<T> { value }) = serde_json::from_str(flash_cookie.value()) {
|
||||
if let Ok(ValuedMessage::<T> { value }) = serde_json::from_str(flash_cookie.value()) {
|
||||
Some(value)
|
||||
} else {
|
||||
None
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user