aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx_traits/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/gfx_traits/lib.rs')
-rw-r--r--components/gfx_traits/lib.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/components/gfx_traits/lib.rs b/components/gfx_traits/lib.rs
index b7af8286af0..5833e847a91 100644
--- a/components/gfx_traits/lib.rs
+++ b/components/gfx_traits/lib.rs
@@ -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;
}
}