summaryrefslogtreecommitdiffstats
path: root/graphics/src/geometry/path/builder.rs
diff options
context:
space:
mode:
authorLibravatar Héctor <hector@hecrj.dev>2025-02-21 19:21:10 +0100
committerLibravatar GitHub <noreply@github.com>2025-02-21 19:21:10 +0100
commitf1ed99cb47997e1d194a41e7cdf2846f8eb5f8fa (patch)
treeb2eeb7537ffd49bfbdd24c1a9580870eca99caa6 /graphics/src/geometry/path/builder.rs
parent81ca3d2a223d62fbb48b93dcea5409f6212605fa (diff)
parent800a73ddd7d4a2e0b1ed23ec565cbc6325b3b7f0 (diff)
downloadiced-f1ed99cb47997e1d194a41e7cdf2846f8eb5f8fa.tar.gz
iced-f1ed99cb47997e1d194a41e7cdf2846f8eb5f8fa.tar.bz2
iced-f1ed99cb47997e1d194a41e7cdf2846f8eb5f8fa.zip
Merge pull request #2809 from iced-rs/rust-2024
Update to Rust 2024
Diffstat (limited to 'graphics/src/geometry/path/builder.rs')
-rw-r--r--graphics/src/geometry/path/builder.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/graphics/src/geometry/path/builder.rs b/graphics/src/geometry/path/builder.rs
index 44410f6d..e814a3a7 100644
--- a/graphics/src/geometry/path/builder.rs
+++ b/graphics/src/geometry/path/builder.rs
@@ -1,4 +1,4 @@
-use crate::geometry::path::{arc, Arc, Path};
+use crate::geometry::path::{Arc, Path, arc};
use crate::core::border;
use crate::core::{Point, Radians, Size};
@@ -171,8 +171,12 @@ impl Builder {
radius: border::Radius,
) {
let min_size = (size.height / 2.0).min(size.width / 2.0);
- let [top_left_corner, top_right_corner, bottom_right_corner, bottom_left_corner] =
- radius.into();
+ let [
+ top_left_corner,
+ top_right_corner,
+ bottom_right_corner,
+ bottom_left_corner,
+ ] = radius.into();
self.move_to(Point::new(
top_left.x + min_size.min(top_left_corner),