Skip to content

Commit 69447e9

Browse files
committed
Revert "Reference and whitespace fixes."
This reverts commit 52f1904.
1 parent 416b3bf commit 69447e9

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/libcore/arc.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,11 @@ impl methods<T> for exclusive<T> {
102102
fn with<U>(f: fn(sys::condition, x: &T) -> U) -> U {
103103
unsafe {
104104
let ptr: ~arc_data<ex_data<T>> = unsafe::reinterpret_cast(*self);
105-
let r = {
106-
let rec: &ex_data<T> = &(*ptr).data;
107-
rec.lock.lock_cond() {|c|
108-
f(c, &rec.data)
109-
}
110-
};
105+
let rec: &ex_data<T> = &(*ptr).data;
111106
unsafe::forget(ptr);
112-
r
107+
rec.lock.lock_cond() {|c|
108+
f(c, &rec.data)
109+
}
113110
}
114111
}
115112
}

src/libsyntax/ast_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ fn id_visitor(vfn: fn@(node_id)) -> visit::vt<()> {
454454

455455
visit_expr: fn@(e: @expr) {
456456
vfn(e.id);
457-
alt e.node {
457+
alt e.node {
458458
expr_index(*) | expr_assign_op(*) |
459459
expr_unary(*) | expr_binary(*) {
460460
vfn(ast_util::op_expr_callee_id(e));

0 commit comments

Comments
 (0)