From 442e70df55e6a64ecac36018addbe5947eebe986 Mon Sep 17 00:00:00 2001 From: David Marques Date: Tue, 26 Apr 2022 07:29:36 +0200 Subject: [PATCH] Changed the drain into into_iter on types.rs --- vm/src/builtins/type.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/builtins/type.rs b/vm/src/builtins/type.rs index 3be8906471..f1e9193e71 100644 --- a/vm/src/builtins/type.rs +++ b/vm/src/builtins/type.rs @@ -267,7 +267,7 @@ impl PyType { fn dir(zelf: PyRef, vm: &VirtualMachine) -> PyList { let attributes: Vec = zelf .get_attributes() - .drain(..) + .into_iter() .map(|(k, _)| vm.ctx.new_str(k).into()) .collect(); PyList::from(attributes)