Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ impl Eq for Seat {}

impl std::hash::Hash for Seat {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
self.0.proto_seat.0.id().hash(state);
Arc::as_ptr(&self.0).hash(state);
}
}

Expand Down Expand Up @@ -997,7 +997,7 @@ impl Eq for Device {}

impl std::hash::Hash for Device {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
self.0.device.0.id().hash(state);
Arc::as_ptr(&self.0).hash(state);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl Eq for Object {}

impl hash::Hash for Object {
fn hash<H: hash::Hasher>(&self, hasher: &mut H) {
self.0.id.hash(hasher);
Arc::as_ptr(&self.0).hash(hasher);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ impl Eq for Seat {}

impl std::hash::Hash for Seat {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
self.0.seat.0.id().hash(state);
Arc::as_ptr(&self.0).hash(state);
}
}

Expand Down Expand Up @@ -1163,7 +1163,7 @@ impl Eq for Device {}

impl std::hash::Hash for Device {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
self.0.device.0.id().hash(state);
Arc::as_ptr(&self.0).hash(state);
}
}

Expand Down
Loading