mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-15 09:05:25 +00:00
Make bytecode::Location Copy
This commit is contained in:
parent
04606e9057
commit
00f9d2247d
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue