From a7959b8c98efb91dda7c12a0ddd505b6e13507b1 Mon Sep 17 00:00:00 2001 From: Jan Scheer Date: Thu, 16 Jun 2022 11:19:31 +0200 Subject: [PATCH] fix --- src/uu/tail/src/tail.rs | 4 ++-- tests/by-util/test_tail.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uu/tail/src/tail.rs b/src/uu/tail/src/tail.rs index 2007c47c0a4..74fd04033e1 100644 --- a/src/uu/tail/src/tail.rs +++ b/src/uu/tail/src/tail.rs @@ -1547,10 +1547,10 @@ impl MetadataExtTail for Metadata { } } - fn file_id_eq(&self, other: &Metadata) -> bool { + fn file_id_eq(&self, _other: &Metadata) -> bool { #[cfg(unix)] { - self.ino().eq(&other.ino()) + self.ino().eq(&_other.ino()) } #[cfg(windows)] { diff --git a/tests/by-util/test_tail.rs b/tests/by-util/test_tail.rs index 155aa6967f1..6bef1d4e615 100644 --- a/tests/by-util/test_tail.rs +++ b/tests/by-util/test_tail.rs @@ -1738,7 +1738,7 @@ fn test_follow_name_truncate1() { } #[test] -#[cfg(unix)] +#[cfg(target_os = "linux")] // FIXME: fix this test for BSD/macOS fn test_follow_name_truncate2() { // This test triggers a truncate event while `tail --follow=name file` is running. // $ ((sleep 1 && echo -n "x\nx\nx\n" >> file && sleep 1 && \