unwrap amends requested by mmstick

This commit is contained in:
ellieplayswow 2025-01-20 10:06:45 +00:00
parent 57f51b7aa2
commit a72510a145

View file

@ -84,7 +84,7 @@ impl Icon {
self.height self.height
.unwrap_or_else(|| Length::Fixed(f32::from(self.size))), .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) .content_fit(self.content_fit)
.into() .into()
}; };
@ -100,7 +100,7 @@ impl Icon {
self.height self.height
.unwrap_or_else(|| Length::Fixed(f32::from(self.size))), .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) .content_fit(self.content_fit)
.symbolic(self.handle.symbolic) .symbolic(self.handle.symbolic)
.into() .into()