diff options
author | 2022-02-03 17:18:05 +0700 | |
---|---|---|
committer | 2022-02-03 17:18:05 +0700 | |
commit | f56c8a7361ceb215bce68e88bd6ce402e2694693 (patch) | |
tree | ec4d7ef8a63cf9ce0a77c28c9beeeaa7f3d64efc /examples/solar_system | |
parent | 76c03de58729783513504f8115d7381f9a52fd23 (diff) | |
download | iced-f56c8a7361ceb215bce68e88bd6ce402e2694693.tar.gz iced-f56c8a7361ceb215bce68e88bd6ce402e2694693.tar.bz2 iced-f56c8a7361ceb215bce68e88bd6ce402e2694693.zip |
Ask for a slice of segments instead of ownership in `LineDash`
Diffstat (limited to 'examples/solar_system')
-rw-r--r-- | examples/solar_system/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs index fb782d9c..12184dd1 100644 --- a/examples/solar_system/src/main.rs +++ b/examples/solar_system/src/main.rs @@ -165,7 +165,7 @@ impl<Message> canvas::Program<Message> for State { color: Color::from_rgba8(0, 153, 255, 0.1), line_dash: canvas::LineDash { offset: 0, - segments: vec![3.0, 6.0], + segments: &[3.0, 6.0], }, ..Stroke::default() }, |