mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-25 18:09:22 +02:00
clippy warnings
This commit is contained in:
@ -95,7 +95,7 @@ impl DefaultHeadersBuilder {
|
||||
/// Finishes building and returns the built `DefaultHeaders` middleware.
|
||||
pub fn finish(&mut self) -> DefaultHeaders {
|
||||
let headers = self.headers.take().expect("cannot reuse middleware builder");
|
||||
DefaultHeaders{ ct: self.ct, headers: headers }
|
||||
DefaultHeaders{ ct: self.ct, headers }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -377,8 +377,8 @@ impl<S> SessionBackend<S> for CookieSessionBackend {
|
||||
FutOk(
|
||||
CookieSession {
|
||||
changed: false,
|
||||
state: state,
|
||||
inner: Rc::clone(&self.0),
|
||||
state,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user