about summary refs log tree commit diff
path: root/src/libstd/io.rs
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-06-10 00:44:58 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2013-06-10 23:02:54 +1000
commitc32fb53cf9ae20a657d17bd8e2f0b36863096583 (patch)
tree928280b4bfcde6b9765de76f956624a735eafde9 /src/libstd/io.rs
parentb29cd22bce6325a60788ab84f989bd2e82fcaaf4 (diff)
downloadrust-c32fb53cf9ae20a657d17bd8e2f0b36863096583.tar.gz
rust-c32fb53cf9ae20a657d17bd8e2f0b36863096583.zip
std: remove str::{len, slice, is_empty} in favour of methods.
Diffstat (limited to 'src/libstd/io.rs')
-rw-r--r--src/libstd/io.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io.rs b/src/libstd/io.rs
index e3977ca0067..8ec3a4cdd81 100644
--- a/src/libstd/io.rs
+++ b/src/libstd/io.rs
@@ -748,7 +748,7 @@ impl<T:Reader> ReaderUtil for T {
             if self.eof() && line.is_empty() { break; }
 
             // trim the \n, so that each_line is consistent with read_line
-            let n = str::len(line);
+            let n = line.len();
             if line[n-1] == '\n' as u8 {
                 unsafe { str::raw::set_len(&mut line, n-1); }
             }