Ask for a slice of segments instead of ownership in LineDash

This commit is contained in:
Héctor Ramón Jiménez 2022-02-03 17:18:05 +07:00
parent 76c03de587
commit f56c8a7361
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
5 changed files with 26 additions and 26 deletions

View file

@ -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()
},