Skip to content

Commit

Permalink
fix: Fix needless borrows in coin-or-sys build.rs (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
jetuk authored Sep 21, 2024
1 parent 9c1dd72 commit 6f93043
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions coin-or-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion pywr-schema/src/metric_sets/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 6f93043

Please sign in to comment.