Skip to content

Commit

Permalink
remove match
Browse files Browse the repository at this point in the history
Signed-off-by: Torrekie <31795847+Torrekie@users.noreply.github.com>
  • Loading branch information
Torrekie committed Jun 17, 2024
1 parent 6208ffc commit 88b54a4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions jemalloc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,12 @@ macro_rules! warning {
fn env_inner_os(name: &str) -> Option<OsString> {
let var = env::var_os(name);
println!("cargo:rerun-if-env-changed={}", name);
match var {
Some(ref v) => println!("{} = {}", name, v.to_string_lossy()),
None => println!("{} unset", name),
}
var
}

fn env_inner(name: &str) -> Result<String, env::VarError> {
let var = env::var(name);
println!("cargo:rerun-if-env-changed={}", name);
match &var {
Ok(v) => println!("{} = {}", name, v),
Err(_) => println!("{} unset", name),
}
var
}

Expand Down

0 comments on commit 88b54a4

Please sign in to comment.