Add from annotation to inherited errors

This commit is contained in:
finga 2022-01-07 11:49:16 +01:00
parent f7aea10c6b
commit 0312a600ed

View file

@ -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> {