diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-10 17:32:36 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-10 23:02:55 +1000 |
| commit | a64e886e3c1dd38473fd7711933557f1b97a9036 (patch) | |
| tree | 0213489226e402bc79a20331295ff3bec409ad70 /src/libfuzzer | |
| parent | 017450a6111a430eca86caf4ee6021ed654b552f (diff) | |
std: remove str::contains in favour of the method
Diffstat (limited to 'src/libfuzzer')
| -rw-r--r-- | src/libfuzzer/fuzzer.rc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfuzzer/fuzzer.rc b/src/libfuzzer/fuzzer.rc index 95aea33d31a..416fabb6d8f 100644 --- a/src/libfuzzer/fuzzer.rc +++ b/src/libfuzzer/fuzzer.rc @@ -57,7 +57,7 @@ pub fn write_file(filename: &Path, content: &str) { } pub fn contains(haystack: &str, needle: &str) -> bool { - str::contains(haystack, needle) + haystack.contains(needle) } pub fn find_rust_files(files: &mut ~[Path], path: &Path) { |
