don't restuct references just to reborrow
This commit is contained in:
parent
35a99eef32
commit
a108d55ce6
22 changed files with 41 additions and 42 deletions
|
@ -425,7 +425,7 @@ fn thin_lto(
|
|||
info!("going for that thin, thin LTO");
|
||||
|
||||
let green_modules: FxHashMap<_, _> =
|
||||
cached_modules.iter().map(|&(_, ref wp)| (wp.cgu_name.clone(), wp.clone())).collect();
|
||||
cached_modules.iter().map(|(_, wp)| (wp.cgu_name.clone(), wp.clone())).collect();
|
||||
|
||||
let full_scope_len = modules.len() + serialized_modules.len() + cached_modules.len();
|
||||
let mut thin_buffers = Vec::with_capacity(modules.len());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue