summaryrefslogtreecommitdiffstats
path: root/examples/solar_system/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-11-03 04:35:16 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-11-03 04:35:16 +0100
commitb95745340441835bd25b5cadc2342254631f8c05 (patch)
tree38f103e59a9decdc83ac5c7514fe89006bf0c7dd /examples/solar_system/src/main.rs
parent20a0577034b40a6bbabee9bbbfc085f3fd5016c0 (diff)
downloadiced-b95745340441835bd25b5cadc2342254631f8c05.tar.gz
iced-b95745340441835bd25b5cadc2342254631f8c05.tar.bz2
iced-b95745340441835bd25b5cadc2342254631f8c05.zip
Run `cargo fmt`
Diffstat (limited to 'examples/solar_system/src/main.rs')
-rw-r--r--examples/solar_system/src/main.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs
index b638c6d0..09ac508d 100644
--- a/examples/solar_system/src/main.rs
+++ b/examples/solar_system/src/main.rs
@@ -11,7 +11,9 @@ use iced::executor;
use iced::theme::{self, Theme};
use iced::time;
use iced::widget::canvas;
-use iced::widget::canvas::{Cursor, Path, Stroke, Gradient, stroke, gradient::Position};
+use iced::widget::canvas::{
+ gradient::Position, stroke, Cursor, Gradient, Path, Stroke,
+};
use iced::window;
use iced::{
Application, Color, Command, Element, Length, Point, Rectangle, Settings,
@@ -201,12 +203,10 @@ impl<Message> canvas::Program<Message> for State {
let earth = Path::circle(Point::ORIGIN, Self::EARTH_RADIUS);
- let earth_fill = Gradient::linear(
- Position::Absolute {
- start: Point::new(-Self::EARTH_RADIUS, 0.0),
- end: Point::new(Self::EARTH_RADIUS, 0.0)
- }
- )
+ let earth_fill = Gradient::linear(Position::Absolute {
+ start: Point::new(-Self::EARTH_RADIUS, 0.0),
+ end: Point::new(Self::EARTH_RADIUS, 0.0),
+ })
.add_stop(0.2, Color::from_rgb(0.15, 0.50, 1.0))
.add_stop(0.8, Color::from_rgb(0.0, 0.20, 0.47))
.build()