summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar shan <shankern@protonmail.com>2022-10-07 13:10:37 -0700
committerLibravatar shan <shankern@protonmail.com>2022-10-07 13:10:37 -0700
commit3e600fe7754645ffdfca595060273b1e96c9a162 (patch)
tree15efaaf23a536ac6bfe75cf7647010c19edf6508 /examples
parent87371ce93411ba900c83cd8230a5814b59092c4b (diff)
downloadiced-3e600fe7754645ffdfca595060273b1e96c9a162.tar.gz
iced-3e600fe7754645ffdfca595060273b1e96c9a162.tar.bz2
iced-3e600fe7754645ffdfca595060273b1e96c9a162.zip
Adjusted reexports for clarity.
Diffstat (limited to 'examples')
-rw-r--r--examples/modern_art/src/main.rs2
-rw-r--r--examples/solar_system/src/main.rs3
2 files changed, 2 insertions, 3 deletions
diff --git a/examples/modern_art/src/main.rs b/examples/modern_art/src/main.rs
index 362e4ad1..fc203cff 100644
--- a/examples/modern_art/src/main.rs
+++ b/examples/modern_art/src/main.rs
@@ -1,5 +1,5 @@
use iced::widget::canvas::{
- self, Cache, Canvas, Cursor, Frame, Geometry, Gradient, Position, Location
+ self, Cache, Canvas, Cursor, Frame, Geometry, Gradient, gradient::Position, gradient::Location
};
use iced::{
executor, Application, Color, Command, Element, Length, Point, Rectangle,
diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs
index 9200391b..10154621 100644
--- a/examples/solar_system/src/main.rs
+++ b/examples/solar_system/src/main.rs
@@ -11,7 +11,7 @@ use iced::executor;
use iced::theme::{self, Theme};
use iced::time;
use iced::widget::canvas;
-use iced::widget::canvas::{Cursor, Path, Stroke, Fill, fill, Gradient, stroke};
+use iced::widget::canvas::{Cursor, Path, Stroke, Fill, fill, Gradient, stroke, gradient::Position};
use iced::window;
use iced::{
Application, Color, Command, Element, Length, Point, Rectangle, Settings,
@@ -19,7 +19,6 @@ use iced::{
};
use std::time::Instant;
-use crate::canvas::Position;
pub fn main() -> iced::Result {
SolarSystem::run(Settings {