From a72510a145f160462ff2b63d97e328532e3be911 Mon Sep 17 00:00:00 2001 From: ellieplayswow <164806095+ellieplayswow@users.noreply.github.com> Date: Mon, 20 Jan 2025 10:06:45 +0000 Subject: [PATCH] unwrap amends requested by mmstick --- src/widget/icon/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widget/icon/mod.rs b/src/widget/icon/mod.rs index 0f6e60de..318b9fb1 100644 --- a/src/widget/icon/mod.rs +++ b/src/widget/icon/mod.rs @@ -84,7 +84,7 @@ impl Icon { self.height .unwrap_or_else(|| Length::Fixed(f32::from(self.size))), ) - .rotation(self.rotation.unwrap_or(Rotation::default())) + .rotation(self.rotation.unwrap_or_else(Rotation::default)) .content_fit(self.content_fit) .into() }; @@ -100,7 +100,7 @@ impl Icon { self.height .unwrap_or_else(|| Length::Fixed(f32::from(self.size))), ) - .rotation(self.rotation.unwrap_or(Rotation::default())) + .rotation(self.rotation.unwrap_or_else(Rotation::default)) .content_fit(self.content_fit) .symbolic(self.handle.symbolic) .into()