From ae16a6f6832e07f217bc05304ca7647d0c587887 Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Tue, 30 Apr 2019 13:25:50 +0200 Subject: [PATCH] Be forward compatible with rust-lang/rust#59928 --- src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index 1b13d427..e88f48ca 100644 --- a/src/error.rs +++ b/src/error.rs @@ -132,7 +132,7 @@ pub trait ResultExt { impl ResultExt for Result { type Ok = T; - fn err_tag(self, msg: S) -> Result + fn err_tag(self, msg: S) -> Result where S: Into> { match self { Ok(v) => Ok(v),