Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
8 lines
182 B
Rust
8 lines
182 B
Rust
|
|
export ptr_eq;
|
|
|
|
fn ptr_eq<T>(a: @T, b: @T) -> bool {
|
|
let a_ptr: uint = unsafe::reinterpret_cast(a);
|
|
let b_ptr: uint = unsafe::reinterpret_cast(b);
|
|
ret a_ptr == b_ptr;
|
|
}
|