1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-01-22 14:55:56 +01:00

cleaned up obvious syntax issue

This commit is contained in:
dowwie 2019-12-18 13:56:12 -05:00
parent bef5dfd90d
commit 512fe9c0e0

View File

@ -260,12 +260,12 @@ impl Inner {
) )
.await; .await;
} else { } else {
return ok(None).await return Ok(None)
} }
} }
} }
} }
ok(None).await Ok(None)
} }
async fn update<B>( async fn update<B>(
@ -311,7 +311,7 @@ impl Inner {
let state: HashMap<_, _> = state.collect(); let state: HashMap<_, _> = state.collect();
match serde_json::to_string(&state) { match serde_json::to_string(&state) {
Err(e) => err(e.into()).await, Err(e) => Err(e.into()),
Ok(body) => Ok(body) =>
self.addr self.addr
.send(Command(resp_array!["SET", cachekey, body, "EX", &self.ttl])) .send(Command(resp_array!["SET", cachekey, body, "EX", &self.ttl]))