diff options
| author | bors <bors@rust-lang.org> | 2013-05-15 07:38:07 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-15 07:38:07 -0700 |
| commit | 4e8261009948ed1cfbbdaf4ecc3fadef795b27b7 (patch) | |
| tree | 4eb235105de5e0b361a7a661ca347530f51e8283 /src/libcore/os.rs | |
| parent | 803c12d85fa898950d9efa9078b64519a1b78ab6 (diff) | |
| parent | a2a8596c3dd963e7b51f11998cffc46033bf6d63 (diff) | |
| download | rust-4e8261009948ed1cfbbdaf4ecc3fadef795b27b7.tar.gz rust-4e8261009948ed1cfbbdaf4ecc3fadef795b27b7.zip | |
auto merge of #6487 : recrack/rust/vec_len, r=thestinger
Rename vec::len(var) to var.len() ``` libcore, libfuzzer, librustc, librustdoc, libstd, libsyntax test/auxiliary test/bench test/run-pass ```
Diffstat (limited to 'src/libcore/os.rs')
| -rw-r--r-- | src/libcore/os.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/os.rs b/src/libcore/os.rs index 9129b33fff5..daad9cee0fc 100644 --- a/src/libcore/os.rs +++ b/src/libcore/os.rs @@ -410,7 +410,7 @@ pub fn self_exe_path() -> Option<Path> { KERN_PROC as c_int, KERN_PROC_PATHNAME as c_int, -1 as c_int]; let mut sz = sz; - sysctl(vec::raw::to_ptr(mib), vec::len(mib) as ::libc::c_uint, + sysctl(vec::raw::to_ptr(mib), mib.len() as ::libc::c_uint, buf as *mut c_void, &mut sz, ptr::null(), 0u as size_t) == (0 as c_int) } @@ -1490,7 +1490,7 @@ mod tests { #[ignore] fn test_env_getenv() { let e = env(); - assert!(vec::len(e) > 0u); + assert!(e.len() > 0u); for e.each |p| { let (n, v) = copy *p; debug!(copy n); @@ -1581,7 +1581,7 @@ mod tests { fn list_dir() { let dirs = os::list_dir(&Path(".")); // Just assuming that we've got some contents in the current directory - assert!((vec::len(dirs) > 0u)); + assert!(dirs.len() > 0u); for dirs.each |dir| { debug!(copy *dir); |
