Add from
annotation to inherited errors
This commit is contained in:
parent
f7aea10c6b
commit
0312a600ed
1 changed files with 2 additions and 2 deletions
|
@ -23,9 +23,9 @@ pub enum WebhookeyError {
|
|||
#[error("Could not evaluate filter request")]
|
||||
InvalidFilter,
|
||||
#[error("IO Error")]
|
||||
Io(std::io::Error),
|
||||
Io(#[from] std::io::Error),
|
||||
#[error("Serde Error")]
|
||||
Serde(serde_json::Error),
|
||||
Serde(#[from] serde_json::Error),
|
||||
}
|
||||
|
||||
pub fn get_string(data: &serde_json::Value) -> Result<String, WebhookeyError> {
|
||||
|
|
Loading…
Reference in a new issue