diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-03-02 07:01:15 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-03-02 07:01:15 +0530 |
| commit | fe565954ea358642ce6598c8f74f6f14b5a3fba0 (patch) | |
| tree | ea1e7c5982975dc9794a33263866ca050270b7b3 /src/libcore | |
| parent | 3f7867c21f60e555768f912b17552fde7991ed1d (diff) | |
| parent | dd67e55c10acf80dbd2c14a8eb231e265b5776a4 (diff) | |
| download | rust-fe565954ea358642ce6598c8f74f6f14b5a3fba0.tar.gz rust-fe565954ea358642ce6598c8f74f6f14b5a3fba0.zip | |
Rollup merge of #31989 - Kimundi:more_flexible_str_pattern_indirection, r=bluss
This allows a bit more flexibility in how to use it, see the included test case.
Diffstat (limited to 'src/libcore')
| -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); } |
