diff --git a/src/morethantext/error.rs b/src/morethantext/error.rs index c8d6a46..7ab1497 100644 --- a/src/morethantext/error.rs +++ b/src/morethantext/error.rs @@ -41,7 +41,10 @@ impl Generic { } } - fn add_source>(&mut self, source: E) { + fn add_source(&mut self, source: E) + where + E: Into, + { self.source = Some(Arc::new(source.into())); } }