Remove Deref and DerefMut implementations from WeakFlowRef.

By definition of a weak pointer, these implementations cannot be safe.
This commit is contained in:
Ms2ger 2015-06-27 18:09:14 +02:00
parent 8892f8175d
commit b37d9cc173
2 changed files with 13 additions and 22 deletions

View file

@ -1393,7 +1393,7 @@ impl ContainingBlockLink {
panic!("Link to containing block not established; perhaps you forgot to call \
`set_absolute_descendants`?")
}
Some(ref mut link) => link.generated_containing_block_size(for_flow),
Some(ref link) => link.upgrade().unwrap().generated_containing_block_size(for_flow),
}
}
}