From 6f93043e0b5c337aa4ddf6f90ac663ae38a6911f Mon Sep 17 00:00:00 2001 From: James Tomlinson Date: Sat, 21 Sep 2024 13:31:55 +0100 Subject: [PATCH] fix: Fix needless borrows in coin-or-sys build.rs (#253) --- coin-or-sys/build.rs | 6 +++--- pywr-schema/src/metric_sets/mod.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/coin-or-sys/build.rs b/coin-or-sys/build.rs index 92958688..c674a5bb 100644 --- a/coin-or-sys/build.rs +++ b/coin-or-sys/build.rs @@ -102,7 +102,7 @@ const COIN_UTILS_SRCS: [&str; 57] = [ fn compile_coin_utils() { let mut builder = make_builder(); - builder.flag(&format!("-I{}", COIN_UTILS_PATH)); + builder.flag(format!("-I{}", COIN_UTILS_PATH)); for src in COIN_UTILS_SRCS.iter() { builder.file(format!("{}/{}", COIN_UTILS_PATH, src)); @@ -134,8 +134,8 @@ fn compile_osi() { let mut builder = make_builder(); builder - .flag(&format!("-I{}", COIN_UTILS_PATH)) - .flag(&format!("-I{}", OSI_SRC_PATH)); + .flag(format!("-I{}", COIN_UTILS_PATH)) + .flag(format!("-I{}", OSI_SRC_PATH)); for src in OSI_SRCS.iter() { builder.file(format!("{}/{}", OSI_SRC_PATH, src)); diff --git a/pywr-schema/src/metric_sets/mod.rs b/pywr-schema/src/metric_sets/mod.rs index c3321047..989a8fe3 100644 --- a/pywr-schema/src/metric_sets/mod.rs +++ b/pywr-schema/src/metric_sets/mod.rs @@ -1,8 +1,8 @@ #[cfg(feature = "core")] use crate::error::SchemaError; +use crate::metric::Metric; #[cfg(feature = "core")] use crate::model::LoadArgs; -use crate::metric::Metric; #[cfg(feature = "core")] use crate::parameters::{Parameter, PythonReturnType}; use pywr_schema_macros::PywrVisitPaths;