Skip to content

Commit fff19f9

Browse files
committed
K
1 parent 414d9aa commit fff19f9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/redismodule.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ pub enum RedisError {
1313
String(String),
1414
}
1515

16+
impl From<&'static str> for RedisError {
17+
fn from(s: &'static str) -> Self {
18+
RedisError::Str(s)
19+
}
20+
}
21+
1622
#[derive(Debug, PartialEq)]
1723
pub enum RedisValue {
1824
SimpleStringStatic(&'static str),

0 commit comments

Comments
 (0)