From aea82998e1ce62a259484a1f2bb5e9c158288c56 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Mon, 11 Nov 2024 11:59:55 +0300 Subject: [PATCH] Avoid lint for unused import by only importing when used (#147) --- tests/shaping/macos.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/shaping/macos.rs b/tests/shaping/macos.rs index 8c8e184f..16384ad5 100644 --- a/tests/shaping/macos.rs +++ b/tests/shaping/macos.rs @@ -1,5 +1,6 @@ // WARNING: this file was generated by ../scripts/gen-shaping-tests.py +#[cfg(target_os = "macos")] use crate::shape; #[cfg(target_os = "macos")]