1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

transmute moved to std::mem

This commit is contained in:
Michael Gehring 2014-05-16 11:03:19 +02:00
parent 4b9c8279ce
commit bf26ea12b2
3 changed files with 5 additions and 5 deletions

View file

@ -70,12 +70,12 @@ fn main() {
strconv::ExpNone,
false, false);
if res.is_some() {
unsafe { std::cast::transmute(res.unwrap()) }
unsafe { std::mem::transmute(res.unwrap()) }
} else {
crash!(1, "no mode given");
}
} else {
unsafe { std::cast::transmute(0o755 as u32) }
unsafe { std::mem::transmute(0o755 as u32) }
};
let dirs = matches.free;

View file

@ -18,7 +18,7 @@ extern crate getopts;
extern crate libc;
use std::os;
use std::cast::transmute;
use std::mem::transmute;
use std::io::{print, File};
use std::ptr::null;
use std::from_str::from_str;

View file

@ -20,7 +20,7 @@ extern crate getopts;
extern crate libc;
use std::io::print;
use std::cast;
use std::mem;
use std::os;
use std::ptr;
use std::str;
@ -103,7 +103,7 @@ fn exec(filename: &str) {
}
if (*line).ut_type == USER_PROCESS {
let user = str::raw::from_c_str(cast::transmute(&(*line).ut_user));
let user = str::raw::from_c_str(mem::transmute(&(*line).ut_user));
users.push(user);
}
}