Merge pull request #2741 from edwloef/click-kind-derive

derive PartialEq and Eq for `mouse::click::Kind`
This commit is contained in:
Héctor 2025-01-26 20:22:52 +01:00 committed by GitHub
commit 1dccd1e71f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -383,7 +383,7 @@ fn update<Message: Clone, Theme, Renderer>(
state.previous_click,
);
if matches!(new_click.kind(), mouse::click::Kind::Double) {
if new_click.kind() == mouse::click::Kind::Double {
shell.publish(message.clone());
}