From 075036c28de3405cb4f0728b29339d06e25e1627 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Thu, 9 Mar 2017 21:47:53 -0500 Subject: [PATCH] fix: fixes a regression 1.11.0 feature --- src/suggestions.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/suggestions.rs b/src/suggestions.rs index 70e14aad..9a62be13 100644 --- a/src/suggestions.rs +++ b/src/suggestions.rs @@ -11,8 +11,8 @@ use fmt::Format; /// `Some("foo")`, whereas "blark" would yield `None`. #[cfg(feature = "suggestions")] #[cfg_attr(feature = "lints", allow(needless_lifetimes))] -pub fn did_you_mean<'a, T, I>(v: &str, possible_values: I) -> Option<&'a str> - where T: AsRef + 'a + ?Sized, +pub fn did_you_mean<'a, T: ?Sized, I>(v: &str, possible_values: I) -> Option<&'a str> + where T: AsRef + 'a, I: IntoIterator { @@ -31,8 +31,8 @@ pub fn did_you_mean<'a, T, I>(v: &str, possible_values: I) -> Option<&'a str> } #[cfg(not(feature = "suggestions"))] -pub fn did_you_mean<'a, T, I>(_: &str, _: I) -> Option<&'a str> - where T: AsRef + 'a + ?Sized, +pub fn did_you_mean<'a, T: ?Sized, I>(_: &str, _: I) -> Option<&'a str> + where T: AsRef + 'a, I: IntoIterator { None