diff options
author | Keegan McAllister <mcallister.keegan@gmail.com> | 2014-09-20 15:35:08 -0700 |
---|---|---|
committer | Keegan McAllister <mcallister.keegan@gmail.com> | 2014-09-20 15:35:08 -0700 |
commit | 045328c8e94f5bdfcd67105c5dfa9209f4cd501c (patch) | |
tree | 1d5f8d958e12ae59e0ac720a7873e3c3b08cb1e8 /components/layout/flow_ref.rs | |
parent | d6ba37c68c34a3748a789caeca225083275757e5 (diff) | |
parent | a40b94d7f946d75e1a66af206efda9879b89c707 (diff) | |
download | servo-045328c8e94f5bdfcd67105c5dfa9209f4cd501c.tar.gz servo-045328c8e94f5bdfcd67105c5dfa9209f4cd501c.zip |
Merge pull request #3438 from servo/rustup
Upgrade Rust
Diffstat (limited to 'components/layout/flow_ref.rs')
-rw-r--r-- | components/layout/flow_ref.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/layout/flow_ref.rs b/components/layout/flow_ref.rs index d90d9ac4cc0..628981e7033 100644 --- a/components/layout/flow_ref.rs +++ b/components/layout/flow_ref.rs @@ -23,7 +23,7 @@ impl FlowRef { pub fn new(mut flow: Box<Flow>) -> FlowRef { unsafe { let result = { - let flow_ref: &mut Flow = flow; + let flow_ref: &mut Flow = &mut *flow; let object = mem::transmute::<&mut Flow, raw::TraitObject>(flow_ref); FlowRef { object: object } }; @@ -56,14 +56,14 @@ impl Drop for FlowRef { } let flow_ref: FlowRef = mem::replace(self, FlowRef { object: raw::TraitObject { - vtable: ptr::mut_null(), - data: ptr::mut_null(), + vtable: ptr::null_mut(), + data: ptr::null_mut(), } }); drop(mem::transmute::<raw::TraitObject, Box<Flow>>(flow_ref.object)); mem::forget(flow_ref); - self.object.vtable = ptr::mut_null(); - self.object.data = ptr::mut_null(); + self.object.vtable = ptr::null_mut(); + self.object.data = ptr::null_mut(); } } } |