Skip to content

Commit 29d9105

Browse files
committed
Use extend_from_slice
1 parent 42c4339 commit 29d9105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/scope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl Scope {
6060
pub fn new_child_scope_with_locals(&self, locals: PyDictRef) -> Scope {
6161
let mut new_locals = Vec::with_capacity(self.locals.len() + 1);
6262
new_locals.push(locals);
63-
new_locals.append(&mut self.locals.clone());
63+
new_locals.extend_from_slice(&self.locals);
6464
Scope {
6565
locals: new_locals,
6666
globals: self.globals.clone(),

0 commit comments

Comments
 (0)