Skip to content

Commit

Permalink
make recent clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-kfed committed Jun 7, 2024
1 parent ac1106f commit 20cef71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ rust-2018-idioms = "deny"
nonstandard-style = "deny"

[lints.clippy]
unwrap_used = "deny"
unwrap_in_result = "deny"
panic = "deny"
expect_used = "deny"
unimplemented = "deny"
suspicious = "forbid"
style = "forbid"
complexity = "forbid"
Expand Down
2 changes: 2 additions & 0 deletions lcov2cobertura/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ pub fn parse_lines<P: AsRef<Path>, B: BufRead>(
let mut split = line.splitn(2, ':');
let (input_type, line) = (split.next(), split.last());

// proposed improvement only works in rustc 1.63 and above
#[allow(clippy::assigning_clones)]
match input_type {
Some("SF") => {
let file_name = line.ok_or_else(|| anyhow::anyhow!("SF entry has no filename"))?;
Expand Down

0 comments on commit 20cef71

Please sign in to comment.