mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Stop calling deref() and deref_mut() explicitly.
This commit is contained in:
parent
ee4c56bd8b
commit
13c7cf928a
14 changed files with 56 additions and 57 deletions
|
@ -75,7 +75,7 @@ impl Drop for FlowRef {
|
|||
impl Clone for FlowRef {
|
||||
fn clone(&self) -> FlowRef {
|
||||
unsafe {
|
||||
drop(flow::base(self.deref()).ref_count().fetch_add(1, Ordering::SeqCst));
|
||||
drop(flow::base(&**self).ref_count().fetch_add(1, Ordering::SeqCst));
|
||||
FlowRef {
|
||||
object: raw::TraitObject {
|
||||
vtable: self.object.vtable,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue