Skip to content

Commit

Permalink
Merge pull request #1848 from findepi/findepi/remove-obsolete-clippy-…
Browse files Browse the repository at this point in the history
…suppressions-09e33d

Remove obsolete clippy suppressions
  • Loading branch information
dtolnay authored Feb 13, 2025
2 parents 5357d54 + 88f0820 commit fdbed64
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/lit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1281,9 +1281,6 @@ mod value {
}
}

// Clippy false positive
// https://github.com/rust-lang-nursery/rust-clippy/issues/2329
#[allow(clippy::needless_continue)]
fn parse_lit_str_cooked(mut s: &str) -> (Box<str>, Box<str>) {
assert_eq!(byte(s, 0), b'"');
s = &s[1..];
Expand Down Expand Up @@ -1376,9 +1373,6 @@ mod value {
}
}

// Clippy false positive
// https://github.com/rust-lang-nursery/rust-clippy/issues/2329
#[allow(clippy::needless_continue)]
fn parse_lit_byte_str_cooked(mut s: &str) -> (Vec<u8>, Box<str>) {
assert_eq!(byte(s, 0), b'b');
assert_eq!(byte(s, 1), b'"');
Expand Down Expand Up @@ -1455,9 +1449,6 @@ mod value {
}
}

// Clippy false positive
// https://github.com/rust-lang-nursery/rust-clippy/issues/2329
#[allow(clippy::needless_continue)]
fn parse_lit_c_str_cooked(mut s: &str) -> (CString, Box<str>) {
assert_eq!(byte(s, 0), b'c');
assert_eq!(byte(s, 1), b'"');
Expand Down

0 comments on commit fdbed64

Please sign in to comment.