Skip to content

Commit

Permalink
clippy adjs
Browse files Browse the repository at this point in the history
  • Loading branch information
carueda committed Jul 30, 2024
1 parent 12e1eaf commit c678cd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ fn main() {
build.flag(&std::env::var("DEP_OPENMP_FLAG").unwrap());

if let Ok(val) = std::env::var("PROB_T") {
let define = format!("-DPROB_T={}", val);
build = build.flag(define.as_str()).to_owned();
build.flag(format!("-DPROB_T={}", val).as_str());
}

build.files(files).compile("ecoz2_lib");
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ format:

# Run clippy
clippy:
cargo clippy --no-deps
cargo clippy --no-deps -- -D warnings

# Build release
build:
Expand Down

0 comments on commit c678cd7

Please sign in to comment.