mirror of
https://github.com/jht5945/buildj.git
synced 2025-12-27 17:20:06 +08:00
style: code style
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -65,7 +65,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "buildj"
|
||||
version = "0.1.2"
|
||||
version = "0.1.3"
|
||||
dependencies = [
|
||||
"dirs 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"json 0.11.15 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
||||
@@ -257,8 +257,7 @@ fn process_envs(the_env: &mut HashMap<String, String>, build_json_object: &json:
|
||||
if *VERBOSE {
|
||||
debugging!("Env: {}", env);
|
||||
}
|
||||
let env_k = &env[0];
|
||||
let env_v = &env[1];
|
||||
let (env_k, env_v) = (&env[0], &env[1]);
|
||||
if let (Some(env_k_str), Some(env_v_str)) = (env_k.as_str(), env_v.as_str()) {
|
||||
the_env.insert(env_k_str.to_owned(), env_v_str.to_owned());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user