Remove unnecessary to_string.

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

View file

@ -60,7 +60,7 @@ impl Settings {
self.default_icon_theme = if value.is_empty() {
None
} else {
Some(value.to_string())
Some(value)
};
self
}