We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5320818 commit 442e70dCopy full SHA for 442e70d
vm/src/builtins/type.rs
@@ -267,7 +267,7 @@ impl PyType {
267
fn dir(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyList {
268
let attributes: Vec<PyObjectRef> = zelf
269
.get_attributes()
270
- .drain(..)
+ .into_iter()
271
.map(|(k, _)| vm.ctx.new_str(k).into())
272
.collect();
273
PyList::from(attributes)
0 commit comments