mirror of
https://github.com/actix/actix-extras.git
synced 2025-02-02 10:59:03 +01:00
Fix clippy warnings (#31)
This commit is contained in:
parent
505254f7cf
commit
9f64a38e17
@ -43,7 +43,7 @@ impl RedisActor {
|
|||||||
Supervisor::start(|_| RedisActor {
|
Supervisor::start(|_| RedisActor {
|
||||||
addr,
|
addr,
|
||||||
cell: None,
|
cell: None,
|
||||||
backoff: backoff,
|
backoff,
|
||||||
queue: VecDeque::new(),
|
queue: VecDeque::new(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -364,7 +364,7 @@ impl Inner {
|
|||||||
cookie.set_expires(time::now() - Duration::days(365));
|
cookie.set_expires(time::now() - Duration::days(365));
|
||||||
|
|
||||||
let val = HeaderValue::from_str(&cookie.to_string())
|
let val = HeaderValue::from_str(&cookie.to_string())
|
||||||
.map_err(|err| error::ErrorInternalServerError(err))?;
|
.map_err(error::ErrorInternalServerError)?;
|
||||||
res.headers_mut().append(header::SET_COOKIE, val);
|
res.headers_mut().append(header::SET_COOKIE, val);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user