From 108da0267be611ef7cdaacd17d850d53408319bf Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Sat, 23 Jul 2022 21:50:37 -0400 Subject: [PATCH] Readability changes. --- src/morethantext/error.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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())); } }