mirror of
https://github.com/servo/servo.git
synced 2025-06-13 10:54:29 +00: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
|
@ -29,8 +29,7 @@ struct SurfaceKey([i32; 2]);
|
|||
|
||||
impl Hash for SurfaceKey {
|
||||
fn hash<H: Hasher>(&self, state: &mut H) {
|
||||
let SurfaceKey(ref bytes) = *self;
|
||||
bytes.hash(state);
|
||||
self.0.hash(state);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue