From 44e6312248478d2a1c75da9c5c6bf3ed7f9667cf Mon Sep 17 00:00:00 2001 From: Eric Buehler Date: Wed, 23 Oct 2024 13:24:02 -0400 Subject: [PATCH] Clippy --- mistralrs-quant/build.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/mistralrs-quant/build.rs b/mistralrs-quant/build.rs index 39082fb3b..1b216ac09 100644 --- a/mistralrs-quant/build.rs +++ b/mistralrs-quant/build.rs @@ -1,14 +1,10 @@ -use std::{fs::read_to_string, process::Command}; - -#[cfg(feature = "cuda")] -const CUDA_NVCC_FLAGS: Option<&'static str> = option_env!("CUDA_NVCC_FLAGS"); -#[cfg(feature = "cuda")] -const MARLIN_FFI_PATH: &str = "src/gptq/marlin_ffi.rs"; - fn main() { #[cfg(feature = "cuda")] { - use std::{path::PathBuf, vec}; + use std::{fs::read_to_string, path::PathBuf, process::Command, vec}; + const MARLIN_FFI_PATH: &str = "src/gptq/marlin_ffi.rs"; + const CUDA_NVCC_FLAGS: Option<&'static str> = option_env!("CUDA_NVCC_FLAGS"); + println!("cargo:rerun-if-changed=build.rs"); let compute_cap = {