We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76eef29 commit be5f3d3Copy full SHA for be5f3d3
src/redismodule.rs
@@ -1,7 +1,7 @@
1
use std::ffi::CString;
2
use std::slice;
3
use std::str;
4
-use core::num::ParseFloatError;
+use core::num::{ParseFloatError, ParseIntError};
5
6
pub type RedisResult = Result<RedisValue, RedisError>;
7
@@ -26,6 +26,12 @@ impl From<ParseFloatError> for RedisError {
26
}
27
28
29
+impl From<ParseIntError> for RedisError {
30
+ fn from(e: ParseIntError) -> Self {
31
+ RedisError::String(e.to_string())
32
+ }
33
+}
34
+
35
#[derive(Debug, PartialEq)]
36
pub enum RedisValue {
37
SimpleStringStatic(&'static str),
0 commit comments