diff options
author | 2022-10-06 07:28:05 -0700 | |
---|---|---|
committer | 2022-10-06 07:28:05 -0700 | |
commit | cb7c4676543cd508dfae8d4dcbd9cc8b61b1a94e (patch) | |
tree | d72191140c2a7a4919a0787431c1c6da60a55964 /examples/clock | |
parent | 1eb8d972ba60592da7bfc27fe7ec80138e64dd7b (diff) | |
download | iced-cb7c4676543cd508dfae8d4dcbd9cc8b61b1a94e.tar.gz iced-cb7c4676543cd508dfae8d4dcbd9cc8b61b1a94e.tar.bz2 iced-cb7c4676543cd508dfae8d4dcbd9cc8b61b1a94e.zip |
Fixed lint issues & cleaned up some documentation.
Diffstat (limited to 'examples/clock')
-rw-r--r-- | examples/clock/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs index 06ed44f0..be614201 100644 --- a/examples/clock/src/main.rs +++ b/examples/clock/src/main.rs @@ -1,6 +1,6 @@ use iced::executor; use iced::widget::canvas::{ - Cache, Cursor, Geometry, LineCap, Path, Stroke, Style, + Cache, Cursor, Geometry, LineCap, Path, Stroke, stroke, }; use iced::widget::{canvas, container}; use iced::{ @@ -111,7 +111,7 @@ impl<Message> canvas::Program<Message> for Clock { let thin_stroke = || -> Stroke { Stroke { width, - style: Style::Solid(Color::WHITE), + style: stroke::Style::Solid(Color::WHITE), line_cap: LineCap::Round, ..Stroke::default() } @@ -120,7 +120,7 @@ impl<Message> canvas::Program<Message> for Clock { let wide_stroke = || -> Stroke { Stroke { width: width * 3.0, - style: Style::Solid(Color::WHITE), + style: stroke::Style::Solid(Color::WHITE), line_cap: LineCap::Round, ..Stroke::default() } |