From aa86f2b157b02aa0b1da2fed00ffd04d0944aaf4 Mon Sep 17 00:00:00 2001 From: bokutotu Date: Wed, 29 May 2024 02:43:33 +0900 Subject: [PATCH] fix clippy --- zenu-cuda/src/lib.rs | 1 - zenu-test/src/lib.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/zenu-cuda/src/lib.rs b/zenu-cuda/src/lib.rs index 06e1f9cd..c56fbdec 100644 --- a/zenu-cuda/src/lib.rs +++ b/zenu-cuda/src/lib.rs @@ -6,7 +6,6 @@ pub mod runtime; use std::{ptr::NonNull, sync::Mutex}; use cublas::cublas_error::ZenuCublasError; -use cudnn::error::ZenuCudnnError; use once_cell::sync::Lazy; use zenu_cublas_sys::{cublasContext, cublasCreate_v2, cublasDestroy_v2}; use zenu_cudnn_sys::{cudnnContext, cudnnCreate, cudnnDestroy}; diff --git a/zenu-test/src/lib.rs b/zenu-test/src/lib.rs index 8cb0bd57..5efe7665 100644 --- a/zenu-test/src/lib.rs +++ b/zenu-test/src/lib.rs @@ -79,12 +79,12 @@ macro_rules! run_mat_test { ($test_func:ident, $cpu_name:ident, $gpu_name:ident) => { #[test] fn $cpu_name() { - $test_func::(); + $test_func::<$crate::device::cpu::Cpu>(); } #[cfg(feature = "nvidia")] #[test] fn $gpu_name() { - $test_func::(); + $test_func::<$crate::device::nvidia::Nvidia>(); } }; }