1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-02-02 02:53:10 +01:00

Fix clippy warnings (#31)

This commit is contained in:
Yuki Okushi 2019-09-30 09:19:24 +09:00 committed by GitHub
parent 505254f7cf
commit 9f64a38e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ impl RedisActor {
Supervisor::start(|_| RedisActor {
addr,
cell: None,
backoff: backoff,
backoff,
queue: VecDeque::new(),
})
}

View File

@ -364,7 +364,7 @@ impl Inner {
cookie.set_expires(time::now() - Duration::days(365));
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);
Ok(())