From 941ba910e430d22460e57e032ca647aa74765524 Mon Sep 17 00:00:00 2001 From: James Tomlinson Date: Sat, 17 Feb 2024 00:48:37 +0000 Subject: [PATCH] fix: Fix clippy warnings in clp-sys crate. (#109) --- clp-sys/build.rs | 6 +++--- clp-sys/src/bindings.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/clp-sys/build.rs b/clp-sys/build.rs index 3f9a8ab6..242bffb4 100644 --- a/clp-sys/build.rs +++ b/clp-sys/build.rs @@ -39,7 +39,7 @@ fn main() { let mut builder = make_builder(); builder - .flag(&*format!("-I{}", COIN_UTILS_SRC)) + .flag(&format!("-I{}", COIN_UTILS_SRC)) .file(format!("{}/CoinAlloc.cpp", COIN_UTILS_SRC)) .file(format!("{}/CoinBuild.cpp", COIN_UTILS_SRC)) .file(format!("{}/CoinDenseFactorization.cpp", COIN_UTILS_SRC)) @@ -104,8 +104,8 @@ fn main() { let mut builder = make_builder(); builder - .flag(&*format!("-I{}", COIN_UTILS_SRC)) - .flag(&*format!("-I{}", COIN_CLP_SRC)) + .flag(&format!("-I{}", COIN_UTILS_SRC)) + .flag(&format!("-I{}", COIN_CLP_SRC)) .file(format!("{}/ClpCholeskyBase.cpp", COIN_CLP_SRC)) .file(format!("{}/ClpCholeskyDense.cpp", COIN_CLP_SRC)) .file(format!("{}/ClpCholeskyPardiso.cpp", COIN_CLP_SRC)) diff --git a/clp-sys/src/bindings.rs b/clp-sys/src/bindings.rs index e873bc67..0d4caa02 100644 --- a/clp-sys/src/bindings.rs +++ b/clp-sys/src/bindings.rs @@ -1,10 +1,10 @@ /* automatically generated by rust-bindgen 0.57.0 */ -pub const CLP_VERSION: &'static [u8; 6usize] = b"trunk\0"; +pub const CLP_VERSION: &[u8; 6usize] = b"trunk\0"; pub const CLP_VERSION_MAJOR: u32 = 9999; pub const CLP_VERSION_MINOR: u32 = 9999; pub const CLP_VERSION_RELEASE: u32 = 9999; -pub const COINUTILS_VERSION: &'static [u8; 7usize] = b"master\0"; +pub const COINUTILS_VERSION: &[u8; 7usize] = b"master\0"; pub const COINUTILS_VERSION_MAJOR: u32 = 9999; pub const COINUTILS_VERSION_MINOR: u32 = 9999; pub const COINUTILS_VERSION_RELEASE: u32 = 9999;