Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
mzhang28 committed Sep 26, 2018
1 parent 5773d79 commit 2dd9d3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cache/_redis.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use redis::{Client, Commands, FromRedisValue, RedisError};
use redis::{Client, Commands, FromRedisValue, RedisError, Value};
use serde::{Deserialize, Serialize};
use serde_cbor::{from_slice, to_vec};

Expand All @@ -20,7 +20,7 @@ impl Cache for RedisCache {
{
self.client
.get(key.as_ref())
.and_then(|value: redis::Value| Vec::<u8>::from_redis_value(&value))
.and_then(|value: Value| Vec::<u8>::from_redis_value(&value))
.map_err(|_| ())
.and_then(|vec| from_slice(vec.as_slice()).map_err(|_| ()))
}
Expand Down

0 comments on commit 2dd9d3a

Please sign in to comment.