From 576e20d4c97a60a65995822e0a6526fcfc39bf8d Mon Sep 17 00:00:00 2001 From: "Meir Shpilraien (Spielrein)" Date: Mon, 22 May 2023 21:17:05 +0300 Subject: [PATCH] Implement From for RedisValue. (#337) --- src/redisvalue.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/redisvalue.rs b/src/redisvalue.rs index 14970206..4a737a04 100644 --- a/src/redisvalue.rs +++ b/src/redisvalue.rs @@ -106,6 +106,12 @@ impl From for RedisValue { } } +impl From for RedisValue { + fn from(b: bool) -> Self { + Self::Bool(b) + } +} + impl From for RedisValue { fn from(i: usize) -> Self { (i as i64).into()