syntax: remove unnecessary unsafe blocks/functions

This commit is contained in:
Alex Crichton 2013-04-09 02:08:03 -04:00
parent 72c24e20a9
commit 8978643f92

View file

@ -274,13 +274,11 @@ impl ToStr for Abi {
impl ToStr for AbiSet { impl ToStr for AbiSet {
fn to_str(&self) -> ~str { fn to_str(&self) -> ~str {
unsafe { // so we can push to strs. let mut strs = ~[];
let mut strs = ~[]; for self.each |abi| {
for self.each |abi| { strs.push(abi.data().name);
strs.push(abi.data().name);
}
fmt!("\"%s\"", str::connect_slices(strs, " "))
} }
fmt!("\"%s\"", str::connect_slices(strs, " "))
} }
} }