diff --git a/truncate/truncate.rs b/truncate/truncate.rs index 26b9f449c..ce20ff1cc 100644 --- a/truncate/truncate.rs +++ b/truncate/truncate.rs @@ -185,8 +185,8 @@ fn parse_size(size: &str) -> (u64, TruncateMode) { } }; if size.char_at(size.len() - 1).is_alphabetic() { - number *= match size.char_at(size.len() - 1).to_ascii().to_upper().to_char() { - 'B' => match size.char_at(size.len() - 2).to_ascii().to_upper().to_char() { + number *= match size.char_at(size.len() - 1).to_ascii().to_uppercase().to_char() { + 'B' => match size.char_at(size.len() - 2).to_ascii().to_uppercase().to_char() { 'K' => 1000, 'M' => 1000 * 1000, 'G' => 1000 * 1000 * 1000, diff --git a/uname/uname.rs b/uname/uname.rs index b9d90ac19..f3ef6770c 100644 --- a/uname/uname.rs +++ b/uname/uname.rs @@ -18,7 +18,7 @@ extern crate getopts; extern crate libc; use std::os; -use std::mem::uninit; +use std::mem::uninitialized; use std::io::print; use std::str::raw::from_c_str; use c_types::utsname; @@ -39,7 +39,7 @@ extern { } unsafe fn getuname() -> utsrust { - let mut uts: utsname = uninit(); + let mut uts: utsname = uninitialized(); uname(&mut uts); utsrust { sysname: from_c_str(uts.sysname.as_ptr()), nodename: from_c_str(uts.nodename.as_ptr()),