Skip to content

Commit 94d3777

Browse files
authored
Merge pull request RustPython#3661 from djrmarques/main
Changed the drain into into_iter on types.rs
2 parents 5320818 + 442e70d commit 94d3777

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)