From 2dd9d3aed46f4268b30681756f23eacbf4bd7b9f Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Wed, 26 Sep 2018 06:18:49 -0500 Subject: [PATCH] d --- cache/_redis.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cache/_redis.rs b/cache/_redis.rs index 92cb71a..ca7d08b 100644 --- a/cache/_redis.rs +++ b/cache/_redis.rs @@ -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}; @@ -20,7 +20,7 @@ impl Cache for RedisCache { { self.client .get(key.as_ref()) - .and_then(|value: redis::Value| Vec::::from_redis_value(&value)) + .and_then(|value: Value| Vec::::from_redis_value(&value)) .map_err(|_| ()) .and_then(|vec| from_slice(vec.as_slice()).map_err(|_| ())) }