aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-25 08:45:52 +0000
committerBlaž Hrastnik2021-03-25 08:45:52 +0000
commitcf0e191a6a42a2382128765dc0ff1531ad9800af (patch)
treeb2769240a7937df1220e98cd6be1e0432527af27
parent8b28bf253394b46d3846710075d635d511dc4879 (diff)
Clippy lint
-rw-r--r--helix-view/src/theme.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/theme.rs b/helix-view/src/theme.rs
index f7731929..ec7c746a 100644
--- a/helix-view/src/theme.rs
+++ b/helix-view/src/theme.rs
@@ -137,7 +137,7 @@ fn parse_style(style: &mut Style, value: Value) {
}
fn hex_string_to_rgb(s: &str) -> Option<(u8, u8, u8)> {
- if s.starts_with("#") && s.len() >= 7 {
+ if s.starts_with('#') && s.len() >= 7 {
if let (Ok(red), Ok(green), Ok(blue)) = (
u8::from_str_radix(&s[1..3], 16),
u8::from_str_radix(&s[3..5], 16),