Skip to content

Commit ed4c60c

Browse files
fix: cargo fmt
1 parent 40d0d3a commit ed4c60c

File tree

1 file changed

+4
-3
lines changed
  • iced_examples/iced_virtualkeyboard/src

1 file changed

+4
-3
lines changed

iced_examples/iced_virtualkeyboard/src/main.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use iced::mouse::{Cursor, Interaction};
2-
use iced::widget::canvas::{Cache, Event, Geometry, Path, Text};
32
use iced::widget::canvas;
3+
use iced::widget::canvas::{Cache, Event, Geometry, Path, Text};
44
use iced::{Color, Task as Command};
55
use iced::{Element, Length, Point, Rectangle, Renderer, Size, Theme};
66
use iced_layershell::Application;
@@ -326,8 +326,9 @@ impl canvas::Program<Message> for KeyboardView {
326326
// Clear the cache
327327
self.draw_cache.clear();
328328
if let Some(key_code) = get_key_code(label) {
329-
return
330-
Some(canvas::Action::publish(Message::InputKeyPressed(key_code)));
329+
return Some(canvas::Action::publish(Message::InputKeyPressed(
330+
key_code,
331+
)));
331332
}
332333
}
333334
}

0 commit comments

Comments
 (0)