Fix clippy issues.
This commit is contained in:
parent
dcd63b508e
commit
01f34d104f
1 changed files with 1 additions and 5 deletions
|
|
@ -57,11 +57,7 @@ impl Settings {
|
||||||
/// Sets the default icon theme, passing an empty string will unset the theme.
|
/// 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 {
|
pub fn default_icon_theme(mut self, value: impl Into<String>) -> Self {
|
||||||
let value: String = value.into();
|
let value: String = value.into();
|
||||||
self.default_icon_theme = if value.is_empty() {
|
self.default_icon_theme = if value.is_empty() { None } else { Some(value) };
|
||||||
None
|
|
||||||
} else {
|
|
||||||
Some(value)
|
|
||||||
};
|
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue