Skip to content

Commit

Permalink
Fixed clippy warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mazznoer committed May 14, 2022
1 parent 8bf0f28 commit 37f8f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub fn parse(s: &str) -> Result<Color, ParseColorError> {

if let (Some(i), Some(s)) = (s.find('('), s.strip_suffix(')')) {
let fname = &s[..i].trim_end();
let s = &s[i + 1..].replace(",", " ").replace("/", " ");
let s = &s[i + 1..].replace(',', " ").replace('/', " ");
let params = s.split_whitespace().collect::<Vec<&str>>();
let p_len = params.len();

Expand Down

0 comments on commit 37f8f9f

Please sign in to comment.