diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2016-03-01 17:53:51 +0100 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2016-03-01 17:53:51 +0100 |
| commit | dd67e55c10acf80dbd2c14a8eb231e265b5776a4 (patch) | |
| tree | 024b0f78b127558bd5a8ed9ee0e53b826ae71788 /src/libcore/str | |
| parent | 0a52494f7e259f49a3be176dc6fb151c755d6686 (diff) | |
| download | rust-dd67e55c10acf80dbd2c14a8eb231e265b5776a4.tar.gz rust-dd67e55c10acf80dbd2c14a8eb231e265b5776a4.zip | |
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.
Diffstat (limited to 'src/libcore/str')
| -rw-r--r-- | src/libcore/str/pattern.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
