Skip to content

Commit 7ee5877

Browse files
committed
[00267] Fix cargo fmt and clippy warnings
1 parent 5eaab89 commit 7ee5877

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

rusty/src/core/event_registry.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ impl EventName {
1616
}
1717
}
1818

19+
#[allow(clippy::should_implement_trait)]
1920
pub fn from_str(s: &str) -> Option<Self> {
2021
match s {
2122
"click" => Some(EventName::Click),
@@ -72,12 +73,7 @@ impl EventRegistry {
7273
}
7374

7475
/// Register a callback using a typed event name.
75-
pub fn register_typed(
76-
&mut self,
77-
widget_id: &str,
78-
event: EventName,
79-
callback: EventCallback,
80-
) {
76+
pub fn register_typed(&mut self, widget_id: &str, event: EventName, callback: EventCallback) {
8177
self.register(widget_id, event.as_str(), callback);
8278
}
8379

0 commit comments

Comments
 (0)