diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index 3241b78b..4511b227 100644 --- a/src/config.rs +++ b/src/config.rs @@ -717,7 +717,8 @@ fn rgb_from_hex<D>(deserializer: &mut D) -> ::std::result::Result<Rgb, D::Error> deserializer.deserialize_str(RgbVisitor) } -impl Rgb { +impl FromStr for Rgb { + type Err = (); fn from_str(s: &str) -> ::std::result::Result<Rgb, ()> { let mut chars = s.chars(); let mut rgb = Rgb::default(); |