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