Make bytecode::Location Copy

This commit is contained in:
Noah 2020-03-13 20:57:44 -05:00
parent 04606e9057
commit 00f9d2247d

View file

@ -15,7 +15,7 @@ impl From<Vec<InstructionMetadata>> for InstructionMetadata {
fn from(metas: Vec<Self>) -> Self {
debug_assert!(!metas.is_empty(), "`metas` must not be empty");
InstructionMetadata {
loc: metas[0].loc.clone(),
loc: metas[0].loc,
labels: metas
.into_iter()
.flat_map(|meta| meta.labels.into_iter())