From ee4408ea10eb55bba2c07522521de24146d06e92 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter <daniel.hofstetter@42dh.com> Date: Fri, 21 Mar 2025 14:20:52 +0100 Subject: [PATCH 1/2] mcookie: fix "unused import" warning in test --- tests/by-util/test_mcookie.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/by-util/test_mcookie.rs b/tests/by-util/test_mcookie.rs index 9167b80..3fd2096 100644 --- a/tests/by-util/test_mcookie.rs +++ b/tests/by-util/test_mcookie.rs @@ -5,7 +5,7 @@ use std::io::Write; -use tempfile::{NamedTempFile, TempDir}; +use tempfile::NamedTempFile; use crate::common::util::TestScenario; From c1bf33d9b651b2ec5cf125260bc028eee9e79b91 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter <daniel.hofstetter@42dh.com> Date: Fri, 21 Mar 2025 14:22:40 +0100 Subject: [PATCH 2/2] lslocks: add missing #[cfg(target_os = "linux")] --- tests/by-util/test_lslocks.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/by-util/test_lslocks.rs b/tests/by-util/test_lslocks.rs index b56dcf8..3cd9dcd 100644 --- a/tests/by-util/test_lslocks.rs +++ b/tests/by-util/test_lslocks.rs @@ -3,6 +3,7 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. +#[cfg(target_os = "linux")] use crate::common::util::TestScenario; #[test]