Remove some manual deref() / deref_mut() calls.

This commit is contained in:
Ms2ger 2014-12-16 16:41:33 +01:00
parent 746b262ff4
commit ac95d12037
2 changed files with 6 additions and 6 deletions

View file

@ -55,7 +55,7 @@ impl Drop for FlowRef {
if self.object.vtable.is_null() {
return
}
if flow::base(self.deref()).ref_count().fetch_sub(1, SeqCst) > 1 {
if flow::base(&**self).ref_count().fetch_sub(1, SeqCst) > 1 {
return
}
let flow_ref: FlowRef = mem::replace(self, FlowRef {