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,7 +274,6 @@ impl ToStr for Abi {
impl ToStr for AbiSet {
fn to_str(&self) -> ~str {
unsafe { // so we can push to strs.
let mut strs = ~[];
for self.each |abi| {
strs.push(abi.data().name);
@ -282,7 +281,6 @@ impl ToStr for AbiSet {
fmt!("\"%s\"", str::connect_slices(strs, " "))
}
}
}
#[test]
fn lookup_Rust() {