diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2012-10-18 09:14:11 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2012-10-18 10:09:57 -0700 |
| commit | a7ecde33238f46ae473ceb63db95068f1ce6cffd (patch) | |
| tree | 957aa88a448120578a5e503c874a9b7fa90e5e47 /src/libcore/repr.rs | |
| parent | 95423d28f221ac67bad7e7c6396b983705a056ae (diff) | |
libcore: minor code cleanup.
This is minor and probably completely inconsequential to performance, but I find vec::map to be more clear than vec::each and a push.
Diffstat (limited to 'src/libcore/repr.rs')
| -rw-r--r-- | src/libcore/repr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/repr.rs b/src/libcore/repr.rs index ff29953f09a..b246adcb1d7 100644 --- a/src/libcore/repr.rs +++ b/src/libcore/repr.rs @@ -559,7 +559,7 @@ impl ReprPrinter { unsafe { self.align(sys::min_align_of::<T>()); let value_addr: &T = transmute(copy self.ptr); - (*value_addr).write_repr(self.writer); + value_addr.write_repr(self.writer); self.bump(sys::size_of::<T>()); true } |
