Auto merge of #12480 - KOLANICH-tools:unneeded_destr_assignment, r=jonas-schievink

Remove the unneeded destructuring assignment

in `run` in `project-model/src/build_scripts.rs`
This commit is contained in:
bors 2022-06-07 10:46:56 +00:00
commit 66a842124b

View File

@ -147,8 +147,8 @@ pub(crate) fn run(
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 =