unwrap amends requested by mmstick
This commit is contained in:
parent
57f51b7aa2
commit
a72510a145
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue