diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-10 00:44:58 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-10 23:02:54 +1000 |
| commit | c32fb53cf9ae20a657d17bd8e2f0b36863096583 (patch) | |
| tree | 928280b4bfcde6b9765de76f956624a735eafde9 /src/libfuzzer/fuzzer.rc | |
| parent | b29cd22bce6325a60788ab84f989bd2e82fcaaf4 (diff) | |
| download | rust-c32fb53cf9ae20a657d17bd8e2f0b36863096583.tar.gz rust-c32fb53cf9ae20a657d17bd8e2f0b36863096583.zip | |
std: remove str::{len, slice, is_empty} in favour of methods.
Diffstat (limited to 'src/libfuzzer/fuzzer.rc')
| -rw-r--r-- | src/libfuzzer/fuzzer.rc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libfuzzer/fuzzer.rc b/src/libfuzzer/fuzzer.rc index 4e285e686df..bd72f0891dd 100644 --- a/src/libfuzzer/fuzzer.rc +++ b/src/libfuzzer/fuzzer.rc @@ -376,7 +376,7 @@ pub fn check_variants_T<T:Copy>(crate: @ast::crate, pub fn last_part(filename: ~str) -> ~str { let ix = str::rfind_char(filename, '/').get(); - str::slice(filename, ix + 1u, str::len(filename) - 3u).to_owned() + filename.slice(ix + 1u, filename.len() - 3u).to_owned() } pub enum happiness { @@ -434,7 +434,7 @@ pub fn check_running(exe_filename: &Path) -> happiness { "/Users/jruderman/scripts/timed_run_rust_program.py", [exe_filename.to_str()]); let comb = str::from_bytes(p.output) + "\n" + str::from_bytes(p.error); - if str::len(comb) > 1u { + if comb.len() > 1u { error!("comb comb comb: %?", comb); } @@ -712,4 +712,3 @@ pub mod core { pub use std::cmp; pub use std::sys; } - |
