1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-28 01:31:35 +08:00

style: code style

This commit is contained in:
2020-08-02 15:55:20 +08:00
parent 654bf56c0c
commit f21f124add
2 changed files with 2 additions and 3 deletions

View File

@@ -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());
}