From b54976f309e0f77111d3b5dd64f9d528c5090895 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Tue, 8 Oct 2024 13:44:12 +0530 Subject: [PATCH] fix(clippy): On clippy fix tests if opencl not enabled --- tests/segfault.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/segfault.rs b/tests/segfault.rs index eb78fa5..2be7f48 100644 --- a/tests/segfault.rs +++ b/tests/segfault.rs @@ -1,9 +1,8 @@ -use mnn::*; - /// This segfault on OpenCL backend if we print the tensorinfo #[cfg(feature = "opencl")] #[test] fn test_segfault_case_1_() -> Result<(), Box> { + use mnn::*; let backend = ForwardType::OpenCL; let realesr = std::path::Path::new("tests/assets/realesr.mnn");