cargo fmt
This commit is contained in:
parent
1ed6371cbd
commit
666a5bb068
@ -20,13 +20,13 @@ pub fn get_flash_cookie<T>(cookies: &Cookies) -> Option<T>
|
||||
where
|
||||
T: DeserializeOwned,
|
||||
{
|
||||
cookies.get(FLASH_COOKIE_NAME).and_then(|flash_cookie|
|
||||
cookies.get(FLASH_COOKIE_NAME).and_then(|flash_cookie| {
|
||||
(if let Ok(ValuedMessage::<T> { value }) = serde_json::from_str(flash_cookie.value()) {
|
||||
Some(value)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
))
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
pub type PostResponse = (StatusCode, HeaderMap);
|
||||
|
Loading…
x
Reference in New Issue
Block a user