Remove the unneeded destructuring assignment in run in project-model/src/build_scripts.rs

This commit is contained in:
KOLANICH 2022-06-06 13:59:29 +03:00
parent ad6810e90b
commit b3d2012659

View file

@ -147,8 +147,8 @@ impl WorkspaceBuildScripts {
let out_dir = message.out_dir.into_os_string();
if !out_dir.is_empty() {
let data = outputs[package].get_or_insert_with(Default::default);
let out_dir = Some(AbsPathBuf::assert(PathBuf::from(out_dir)));
(data.out_dir, data.cfgs) = (out_dir, cfgs);
data.out_dir = Some(AbsPathBuf::assert(PathBuf::from(out_dir)));
data.cfgs = cfgs;
}
if !message.env.is_empty() {
outputs[package].get_or_insert_with(Default::default).envs =