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()