From dd67e55c10acf80dbd2c14a8eb231e265b5776a4 Mon Sep 17 00:00:00 2001 From: Marvin Löbel Date: Tue, 1 Mar 2016 17:53:51 +0100 Subject: Changed `std::pattern::Pattern` impl on `&'a &'a str` to `&'a &'b str` in order to allow a bit more felixibility in how to use it. --- src/libcore/str/pattern.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcore/str/pattern.rs') diff --git a/src/libcore/str/pattern.rs b/src/libcore/str/pattern.rs index 29130100e99..abad29cb775 100644 --- a/src/libcore/str/pattern.rs +++ b/src/libcore/str/pattern.rs @@ -492,7 +492,7 @@ impl<'a, F> Pattern<'a> for F where F: FnMut(char) -> bool { ///////////////////////////////////////////////////////////////////////////// /// Delegates to the `&str` impl. -impl<'a, 'b> Pattern<'a> for &'b &'b str { +impl<'a, 'b, 'c> Pattern<'a> for &'c &'b str { pattern_methods!(StrSearcher<'a, 'b>, |&s| s, |s| s); } -- cgit 1.4.1-3-g733a5