Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
StackOverflowExcept1on committed Dec 18, 2024
1 parent a9cfba5 commit a905cb4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gcli/tests/common/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use std::sync::LazyLock;

/// target path from the root workspace
const TARGET: &str = "target";
const WASM_TARGET: &str = "wasms";
const WASM_DIR: &str = "wasms";

static ROOT: LazyLock<String> = LazyLock::new(|| env!("CARGO_MANIFEST_DIR").to_owned() + "/../");
pub static PROFILE: &str = if cfg!(debug_assertions) {
Expand All @@ -31,11 +31,11 @@ pub static PROFILE: &str = if cfg!(debug_assertions) {
};

fn bin_path(name: &str, profile: &str, wasm: bool) -> String {
let root = ROOT;
let root = ROOT.clone();
if wasm {
format!("{TARGET}/{profile}/{WASM_TARGET}/{name}")
format!("{root}{TARGET}/{profile}/{WASM_DIR}/{name}")
} else {
format!("{TARGET}/{profile}/{name}")
format!("{root}{TARGET}/{profile}/{name}")
}
}

Expand Down

0 comments on commit a905cb4

Please sign in to comment.