Relative CLI datetime, cache clear api, work on cache read
This commit is contained in:
@@ -7,7 +7,7 @@ use nom::error::ErrorKind;
|
||||
use serde::{Deserialize, Serialize, Serializer};
|
||||
use std::fmt::Debug;
|
||||
use std::net::AddrParseError;
|
||||
use std::num::ParseIntError;
|
||||
use std::num::{ParseFloatError, ParseIntError};
|
||||
use std::string::FromUtf8Error;
|
||||
use tokio::task::JoinError;
|
||||
|
||||
@@ -161,6 +161,12 @@ impl From<ParseIntError> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<ParseFloatError> for Error {
|
||||
fn from(k: ParseFloatError) -> Self {
|
||||
Self::with_msg(k.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<FromUtf8Error> for Error {
|
||||
fn from(k: FromUtf8Error) -> Self {
|
||||
Self::with_msg(k.to_string())
|
||||
|
||||
Reference in New Issue
Block a user