Fix clippy issues.

This commit is contained in:
Eduardo Flores 2023-08-11 21:56:44 -07:00 • committed by GitHub
parent dcd63b508e
commit 01f34d104f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,11 +57,7 @@ impl Settings {
/// Sets the default icon theme, passing an empty string will unset the theme.
pub fn default_icon_theme(mut self, value: impl Into<String>) -> Self {
let value: String = value.into();
self.default_icon_theme = if value.is_empty() {
None
} else {
Some(value)
};
self.default_icon_theme = if value.is_empty() { None } else { Some(value) };
self
}
}