about summary refs log tree commit diff
path: root/src/librustpkg
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2013-08-09 20:30:03 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2013-08-10 07:33:22 -0700
commitf9dee04aaabc0ee38f91744e07fe67f36ec6c8e9 (patch)
tree8f4c820450000fe20dc036db485afed156e9e0a9 /src/librustpkg
parent74d2552b0ab671a7455b5a60972c0cc6e3ecdb82 (diff)
downloadrust-f9dee04aaabc0ee38f91744e07fe67f36ec6c8e9.tar.gz
rust-f9dee04aaabc0ee38f91744e07fe67f36ec6c8e9.zip
std: Iterator.len_ -> .len
Diffstat (limited to 'src/librustpkg')
-rw-r--r--src/librustpkg/version.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustpkg/version.rs b/src/librustpkg/version.rs
index ab4f47ba69a..44cb8065b38 100644
--- a/src/librustpkg/version.rs
+++ b/src/librustpkg/version.rs
@@ -200,7 +200,7 @@ fn try_parsing_version(s: &str) -> Option<Version> {
 /// Just an approximation
 fn is_url_like(p: &Path) -> bool {
     let str = p.to_str();
-    str.split_iter('/').len_() > 2
+    str.split_iter('/').len() > 2
 }
 
 /// If s is of the form foo#bar, where bar is a valid version
@@ -215,7 +215,7 @@ pub fn split_version_general<'a>(s: &'a str, sep: char) -> Option<(&'a str, Vers
     for st in s.split_iter(sep) {
         debug!("whole = %s part = %s", s, st);
     }
-    if s.split_iter(sep).len_() > 2 {
+    if s.split_iter(sep).len() > 2 {
         return None;
     }
     match s.rfind(sep) {