Fix derive setter for default_icon_theme.
Added `strip_option` to prevent compile time error.
```bash
error[E0277]: the trait bound `Option<String>: From<&str>` is not satisfied
--> examples/application/src/main.rs:24:29
|
24 | .default_icon_theme("Pop")
| ------------------ ^^^^^^^^^ the trait `From<&str>` is not implemented for `Option<String>`
| |
| required by a bound introduced by this call
```
This commit is contained in:
parent
54d47a1b38
commit
09dab77317
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ pub struct Settings {
|
|||
pub(crate) default_font: Font,
|
||||
|
||||
/// Name of the icon theme to search by default.
|
||||
#[setters(into)]
|
||||
#[setters(into, strip_option)]
|
||||
pub(crate) default_icon_theme: Option<String>,
|
||||
|
||||
/// Default size of fonts.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue