From 09dab77317c505c3cbcbc59b4500d168fc5f00dc Mon Sep 17 00:00:00 2001 From: Eduardo Flores Date: Wed, 9 Aug 2023 20:29:01 -0700 Subject: [PATCH] Fix derive setter for default_icon_theme. Added `strip_option` to prevent compile time error. ```bash error[E0277]: the trait bound `Option: 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` | | | required by a bound introduced by this call ``` --- src/app/settings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/settings.rs b/src/app/settings.rs index 19606638..93cda035 100644 --- a/src/app/settings.rs +++ b/src/app/settings.rs @@ -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, /// Default size of fonts.