summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-27 06:57:49 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-27 06:57:49 +0200
commiteffa6881f725fdfd2087205737484726f3580a43 (patch)
tree2ba3c93bc52af5dee2ac7f824c2bfe609bb72bbe /examples
parent2dbcdba209b4c815fb5aa68584bfdf052c983e9a (diff)
downloadiced-effa6881f725fdfd2087205737484726f3580a43.tar.gz
iced-effa6881f725fdfd2087205737484726f3580a43.tar.bz2
iced-effa6881f725fdfd2087205737484726f3580a43.zip
Enable `arc` example
Diffstat (limited to 'examples')
-rw-r--r--examples/arc/Cargo.toml2
-rw-r--r--examples/arc/src/main.rs8
2 files changed, 6 insertions, 4 deletions
diff --git a/examples/arc/Cargo.toml b/examples/arc/Cargo.toml
index 299f5a3e..e6e74363 100644
--- a/examples/arc/Cargo.toml
+++ b/examples/arc/Cargo.toml
@@ -6,4 +6,4 @@ edition = "2021"
publish = false
[dependencies]
-iced = { path = "../../..", features = ["canvas", "tokio", "debug"] }
+iced = { path = "../..", features = ["canvas", "tokio", "debug"] }
diff --git a/examples/arc/src/main.rs b/examples/arc/src/main.rs
index df0e1e8a..0c619dc9 100644
--- a/examples/arc/src/main.rs
+++ b/examples/arc/src/main.rs
@@ -1,11 +1,13 @@
use std::{f32::consts::PI, time::Instant};
use iced::executor;
-use iced::pure::widget::canvas::{
+use iced::widget::canvas::{
self, Cache, Canvas, Cursor, Geometry, Path, Stroke,
};
-use iced::pure::{Application, Element};
-use iced::{Command, Length, Point, Rectangle, Settings, Subscription, Theme};
+use iced::{
+ Application, Command, Element, Length, Point, Rectangle, Settings,
+ Subscription, Theme,
+};
pub fn main() -> iced::Result {
Arc::run(Settings {