syntax: remove unnecessary unsafe blocks/functions
This commit is contained in:
parent
72c24e20a9
commit
8978643f92
1 changed files with 4 additions and 6 deletions
|
@ -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, " "))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue