Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pol-rivero committed Dec 29, 2024
1 parent 3ae3f3f commit a2dd840
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/sketch_board.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,13 @@ impl Component for SketchBoard {
ToolUpdateResult::Unmodified
} else if ke.key == Key::Return || ke.key == Key::KP_Enter {
// First, let the tool handle the event. If the tool does nothing, we can do our thing (otherwise require a second Enter)
let result: ToolUpdateResult = self.active_tool.borrow_mut().handle_event(ToolEvent::Input(ie));
let result: ToolUpdateResult = self
.active_tool
.borrow_mut()
.handle_event(ToolEvent::Input(ie));
if let ToolUpdateResult::Unmodified = result {
self.renderer.request_render(APP_CONFIG.read().action_on_enter());
self.renderer
.request_render(APP_CONFIG.read().action_on_enter());
}
result
} else {
Expand Down

0 comments on commit a2dd840

Please sign in to comment.