diff options
author | 2022-07-09 17:05:45 +0200 | |
---|---|---|
committer | 2022-07-09 17:07:40 +0200 | |
commit | 33a24b58210c88571f789ee27495e3ee3a55e3a4 (patch) | |
tree | 1317f471594d5e1e2718d69e55f679240ca20a40 /graphics | |
parent | 15f794b7a89efb3299cb85b392ec13af145fb0fd (diff) | |
download | iced-33a24b58210c88571f789ee27495e3ee3a55e3a4.tar.gz iced-33a24b58210c88571f789ee27495e3ee3a55e3a4.tar.bz2 iced-33a24b58210c88571f789ee27495e3ee3a55e3a4.zip |
Run `cargo fmt`
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/src/widget/canvas/path.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/graphics/src/widget/canvas/path.rs b/graphics/src/widget/canvas/path.rs index 47786224..f834e286 100644 --- a/graphics/src/widget/canvas/path.rs +++ b/graphics/src/widget/canvas/path.rs @@ -73,9 +73,8 @@ impl Path { pub(super) fn dashed(path: &Path, line_dash: LineDash<'_>) -> Path { Path::new(|builder| { - let segments_odd = (line_dash.segments.len() % 2 == 1).then(|| { - [line_dash.segments, line_dash.segments].concat() - }); + let segments_odd = (line_dash.segments.len() % 2 == 1) + .then(|| [line_dash.segments, line_dash.segments].concat()); let mut draw_line = false; |