From c894829c3779ecb379772f2a0d7492ef1a1ec067 Mon Sep 17 00:00:00 2001 From: Antonios Barotsis Date: Sat, 27 Jan 2024 11:19:41 +0100 Subject: [PATCH] Silence invalid clippy lint (windows) --- tests/utils.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/utils.rs b/tests/utils.rs index 5a649c4..4e853f6 100644 --- a/tests/utils.rs +++ b/tests/utils.rs @@ -58,6 +58,8 @@ pub fn write_random_content(file: &mut impl Write, rng: &mut impl RngCore) { // check that two directories have the exact same content recursively // checks equility of file types if preserve_permissions is true, ignored on non-unix +// Silence clippy warning that triggers because of the `#[cfg(unix)]` on Windows. +#[allow(clippy::only_used_in_recursion)] pub fn assert_same_directory(x: impl Into, y: impl Into, preserve_permissions: bool) { fn read_dir(dir: impl Into) -> impl Iterator { let mut dir: Vec<_> = fs::read_dir(dir).unwrap().map(|entry| entry.unwrap()).collect();