mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Remove some manual deref() / deref_mut() calls.
This commit is contained in:
parent
746b262ff4
commit
ac95d12037
2 changed files with 6 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue