mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
df: disable clippy::assigning_clones on OpenBSD
- Avoid error on OpenBSD stable/7.5 with clippy (lint) - assigning_clones added in Rust 1.78.0 (1.76 used on OpenBSD 7.5) https://rust-lang.github.io/rust-clippy/master/index.html#/assigning_clones Signed-off-by: Laurent Cheylus <foxy@free.fr>
This commit is contained in:
parent
945d20a9db
commit
225a1052a7
1 changed files with 3 additions and 1 deletions
|
@ -220,7 +220,9 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[allow(clippy::assigning_clones)]
|
// clippy::assigning_clones added with Rust 1.78
|
||||||
|
// Rust version = 1.76 on OpenBSD stable/7.5
|
||||||
|
#[cfg_attr(not(target_os = "openbsd"), allow(clippy::assigning_clones))]
|
||||||
fn test_dev_name_match() {
|
fn test_dev_name_match() {
|
||||||
let tmp = tempfile::TempDir::new().expect("Failed to create temp dir");
|
let tmp = tempfile::TempDir::new().expect("Failed to create temp dir");
|
||||||
let dev_name = std::fs::canonicalize(tmp.path())
|
let dev_name = std::fs::canonicalize(tmp.path())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue