aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/flow_ref.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/flow_ref.rs')
-rw-r--r--components/layout/flow_ref.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout/flow_ref.rs b/components/layout/flow_ref.rs
index e46c42d4844..67f306d4508 100644
--- a/components/layout/flow_ref.rs
+++ b/components/layout/flow_ref.rs
@@ -34,17 +34,17 @@ impl FlowRef {
}
impl<'a> Deref<Flow + 'a> for FlowRef {
- fn deref(&self) -> &Flow + 'a {
+ fn deref(&self) -> &(Flow + 'a) {
unsafe {
- mem::transmute_copy::<raw::TraitObject, &Flow + 'a>(&self.object)
+ mem::transmute_copy::<raw::TraitObject, &(Flow + 'a)>(&self.object)
}
}
}
impl<'a> DerefMut<Flow + 'a> for FlowRef {
- fn deref_mut<'a>(&mut self) -> &mut Flow + 'a {
+ fn deref_mut<'a>(&mut self) -> &mut (Flow + 'a) {
unsafe {
- mem::transmute_copy::<raw::TraitObject, &mut Flow + 'a>(&self.object)
+ mem::transmute_copy::<raw::TraitObject, &mut (Flow + 'a)>(&self.object)
}
}
}