diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2013-11-23 11:18:51 +0100 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2013-11-26 10:02:26 +0100 |
| commit | 24b316a3b9567cb2cc2fb6644bd891dbf8855c18 (patch) | |
| tree | 567d9df8a078d09fc610ea3e0b301f5cb6fb63d8 /src/libstd/rt | |
| parent | b42c4388927db75f9a38edbeafbfe13775b1773d (diff) | |
| download | rust-24b316a3b9567cb2cc2fb6644bd891dbf8855c18.tar.gz rust-24b316a3b9567cb2cc2fb6644bd891dbf8855c18.zip | |
Removed unneccessary `_iter` suffixes from various APIs
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/borrowck.rs | 2 | ||||
| -rw-r--r-- | src/libstd/rt/logging.rs | 4 | ||||
| -rw-r--r-- | src/libstd/rt/util.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/rt/borrowck.rs b/src/libstd/rt/borrowck.rs index d1f69ada301..2c78a32a4b6 100644 --- a/src/libstd/rt/borrowck.rs +++ b/src/libstd/rt/borrowck.rs @@ -17,7 +17,7 @@ use rt::env; use rt::local::Local; use rt::task; use rt::task::Task; -use str::{OwnedStr, StrSlice}; +use str::OwnedStr; use str; use uint; use unstable::raw; diff --git a/src/libstd/rt/logging.rs b/src/libstd/rt/logging.rs index 55a6280a1f4..2ca47dbff59 100644 --- a/src/libstd/rt/logging.rs +++ b/src/libstd/rt/logging.rs @@ -63,8 +63,8 @@ fn parse_log_level(level: &str) -> Option<u32> { /// Also supports string log levels of error, warn, info, and debug fn parse_logging_spec(spec: ~str) -> ~[LogDirective]{ let mut dirs = ~[]; - for s in spec.split_iter(',') { - let parts: ~[&str] = s.split_iter('=').collect(); + for s in spec.split(',') { + let parts: ~[&str] = s.split('=').collect(); let mut log_level; let mut name = Some(parts[0].to_owned()); match parts.len() { diff --git a/src/libstd/rt/util.rs b/src/libstd/rt/util.rs index a1f867fd5f3..93721986f3c 100644 --- a/src/libstd/rt/util.rs +++ b/src/libstd/rt/util.rs @@ -77,7 +77,7 @@ pub fn dumb_println(args: &fmt::Arguments) { pub fn abort(msg: &str) -> ! { let msg = if !msg.is_empty() { msg } else { "aborted" }; - let hash = msg.iter().fold(0, |accum, val| accum + (val as uint) ); + let hash = msg.chars().fold(0, |accum, val| accum + (val as uint) ); let quote = match hash % 10 { 0 => " It was from the artists and poets that the pertinent answers came, and I |
