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 && \