mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00
Use Clippy lint table over Cargo config (#490)
Closes https://github.com/astral-sh/puffin/issues/482.
This commit is contained in:
parent
443a0a9df2
commit
9d35128840
28 changed files with 106 additions and 43 deletions
|
@ -9,6 +9,9 @@ repository = { workspace = true }
|
|||
authors = { workspace = true }
|
||||
license = { workspace = true }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
fs-err = { workspace = true }
|
||||
goblin = { workspace = true }
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue