Skip to content

Commit 8978643

Browse files
committed
syntax: remove unnecessary unsafe blocks/functions
1 parent 72c24e2 commit 8978643

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/libsyntax/abi.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,11 @@ impl ToStr for Abi {
274274

275275
impl ToStr for AbiSet {
276276
fn to_str(&self) -> ~str {
277-
unsafe { // so we can push to strs.
278-
let mut strs = ~[];
279-
for self.each |abi| {
280-
strs.push(abi.data().name);
281-
}
282-
fmt!("\"%s\"", str::connect_slices(strs, " "))
277+
let mut strs = ~[];
278+
for self.each |abi| {
279+
strs.push(abi.data().name);
283280
}
281+
fmt!("\"%s\"", str::connect_slices(strs, " "))
284282
}
285283
}
286284

0 commit comments

Comments
 (0)