derive partialeq and eq for mouse::click::Kind

This commit is contained in:
edwloef 2025-01-22 16:32:59 +01:00
parent 75a6f32a5e
commit 3d64e6cd3c
No known key found for this signature in database
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());
}