mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 06:23:25 +00:00
Remove the unneeded destructuring assignment in run
in project-model/src/build_scripts.rs
This commit is contained in:
parent
ad6810e90b
commit
b3d2012659
1 changed files with 2 additions and 2 deletions
|
@ -147,8 +147,8 @@ impl WorkspaceBuildScripts {
|
||||||
let out_dir = message.out_dir.into_os_string();
|
let out_dir = message.out_dir.into_os_string();
|
||||||
if !out_dir.is_empty() {
|
if !out_dir.is_empty() {
|
||||||
let data = outputs[package].get_or_insert_with(Default::default);
|
let data = outputs[package].get_or_insert_with(Default::default);
|
||||||
let out_dir = Some(AbsPathBuf::assert(PathBuf::from(out_dir)));
|
data.out_dir = Some(AbsPathBuf::assert(PathBuf::from(out_dir)));
|
||||||
(data.out_dir, data.cfgs) = (out_dir, cfgs);
|
data.cfgs = cfgs;
|
||||||
}
|
}
|
||||||
if !message.env.is_empty() {
|
if !message.env.is_empty() {
|
||||||
outputs[package].get_or_insert_with(Default::default).envs =
|
outputs[package].get_or_insert_with(Default::default).envs =
|
||||||
|
|
Loading…
Reference in a new issue