You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pubfncookie(&self,name:&str) -> Result<Option<Cookie<'static>>,Error>{let cookie_data = self.local::<CookieData>().expect("should always be set by the cookies middleware");let locked_jar = cookie_data.content.read().unwrap();Ok(locked_jar.get(name).cloned())}
It always returns Ok, so why bother wrapping it an a Result type?
The text was updated successfully, but these errors were encountered:
The cookie method is currently implemented as so:
It always returns
Ok
, so why bother wrapping it an aResult
type?The text was updated successfully, but these errors were encountered: