Use Clippy lint table over Cargo config (#490)

Closes https://github.com/astral-sh/puffin/issues/482.
This commit is contained in:
Charlie Marsh 2023-11-22 15:10:27 +00:00 committed by GitHub
parent 443a0a9df2
commit 9d35128840
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 106 additions and 43 deletions

View file

@ -9,6 +9,9 @@ repository = { workspace = true }
authors = { workspace = true }
license = { workspace = true }
[lints]
workspace = true
[dependencies]
fs-err = { workspace = true }
goblin = { workspace = true }

View file

@ -139,21 +139,21 @@ mod tests {
#[test]
fn parse_ldd_output() {
let ver_str = ldd_output_to_version_str(
r#"ldd (GNU libc) 2.12
r"ldd (GNU libc) 2.12
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper."#,
Written by Roland McGrath and Ulrich Drepper.",
)
.unwrap();
assert_eq!(ver_str, "2.12");
let ver_str = ldd_output_to_version_str(
r#"ldd (Ubuntu GLIBC 2.31-0ubuntu9.2) 2.31
r"ldd (Ubuntu GLIBC 2.31-0ubuntu9.2) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper."#,
Written by Roland McGrath and Ulrich Drepper.",
)
.unwrap();
assert_eq!(ver_str, "2.31");