From 86c88a93260aba442b657f46fe5b396829615366 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sun, 23 Jan 2022 08:30:54 +0900 Subject: [PATCH] impl From for Error --- plume-models/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plume-models/src/lib.rs b/plume-models/src/lib.rs index 546d5997..3eface9f 100644 --- a/plume-models/src/lib.rs +++ b/plume-models/src/lib.rs @@ -166,6 +166,12 @@ impl From for Error { } } +impl From for Error { + fn from(_err: activitystreams::iri_string::validate::Error) -> Error { + Error::InvalidValue + } +} + pub type Result = std::result::Result; /// Adds a function to a model, that returns the first