diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2017-01-06 20:44:51 -0800 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2017-01-06 20:44:51 -0800 |
commit | 4e1f4c8cd7180606156b71ad0222f60e4559f2b3 (patch) | |
tree | 28d7a983f5639270976de1f794cc54cb349ea4a8 /src/config.rs | |
parent | 49187d53f2f8b7cfca9105c3fb00d7c29e2a457b (diff) | |
download | alacritty-4e1f4c8cd7180606156b71ad0222f60e4559f2b3.tar.gz alacritty-4e1f4c8cd7180606156b71ad0222f60e4559f2b3.zip |
Clippy fixes!
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 36f0c363..f36859c7 100644 --- a/src/config.rs +++ b/src/config.rs @@ -713,7 +713,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(); |