Add test case for Api1Range serde
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ pub trait ErrConv<T> {
|
||||
pub trait Convable: ToString {}
|
||||
|
||||
impl<T, E: Convable> ErrConv<T> for Result<T, E> {
|
||||
fn ec(self) -> Result<T, err::Error> {
|
||||
fn ec(self) -> Result<T, ::err::Error> {
|
||||
match self {
|
||||
Ok(x) => Ok(x),
|
||||
Err(e) => Err(::err::Error::from_string(e.to_string())),
|
||||
|
||||
Reference in New Issue
Block a user