Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
crepererum committed Sep 19, 2022
1 parent 24ab2e9 commit 13d2a1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/flamegraph/color/mod.rs
Expand Up @@ -203,7 +203,7 @@ impl FromStr for StrokeColor {
return Ok(StrokeColor::None);
}
parse_flat_bgcolor(s)
.map(|c| StrokeColor::Color(c))
.map(StrokeColor::Color)
.ok_or_else(|| format!("unknown color: {}", s))
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/common/collapse.rs
Expand Up @@ -15,7 +15,7 @@ where
let mut line_num = 1;
for line in result.lines() {
let line = if strip_quotes {
line.unwrap().replace("\"", "").replace("'", "")
line.unwrap().replace('\"', "").replace('\'', "")
} else {
line.unwrap()
};
Expand Down

0 comments on commit 13d2a1a

Please sign in to comment.