Skip to content

Commit 442e70d

Browse files
committed
Changed the drain into into_iter on types.rs
1 parent 5320818 commit 442e70d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/builtins/type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ impl PyType {
267267
fn dir(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyList {
268268
let attributes: Vec<PyObjectRef> = zelf
269269
.get_attributes()
270-
.drain(..)
270+
.into_iter()
271271
.map(|(k, _)| vm.ctx.new_str(k).into())
272272
.collect();
273273
PyList::from(attributes)

0 commit comments

Comments
 (0)