mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
use self.0 instead of destructing single item tuple structs
This commit is contained in:
parent
68a8085a2f
commit
418842faf9
17 changed files with 38 additions and 58 deletions
|
@ -37,8 +37,7 @@ impl OpaqueNode {
|
|||
/// Returns the address of this node, for debugging purposes.
|
||||
#[inline]
|
||||
pub fn id(&self) -> usize {
|
||||
let OpaqueNode(pointer) = *self;
|
||||
pointer
|
||||
self.0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue