mirror of
https://github.com/servo/servo.git
synced 2025-07-31 03:00:29 +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
|
@ -140,8 +140,7 @@ pub struct Epoch(pub u32);
|
|||
|
||||
impl Epoch {
|
||||
pub fn next(&mut self) {
|
||||
let Epoch(ref mut u) = *self;
|
||||
*u += 1;
|
||||
self.0 += 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -150,7 +149,6 @@ pub struct FrameTreeId(pub u32);
|
|||
|
||||
impl FrameTreeId {
|
||||
pub fn next(&mut self) {
|
||||
let FrameTreeId(ref mut u) = *self;
|
||||
*u += 1;
|
||||
self.0 += 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue