diff --git a/vm/src/obj/objset.rs b/vm/src/obj/objset.rs index e4d72a5f4..369af668d 100644 --- a/vm/src/obj/objset.rs +++ b/vm/src/obj/objset.rs @@ -337,8 +337,7 @@ impl PySetInner { } fn hash(&self, vm: &VirtualMachine) -> PyResult { - // let items: Vec = self.content.keys().collect(); - pyhash::hash_iter_no_order(self.content.keys(), vm) + pyhash::hash_iter_unordered(self.content.keys(), vm) } } diff --git a/vm/src/pyhash.rs b/vm/src/pyhash.rs index 90f8c5090..03b912b9f 100644 --- a/vm/src/pyhash.rs +++ b/vm/src/pyhash.rs @@ -84,7 +84,7 @@ pub fn hash_iter<'a, I: std::iter::Iterator>( Ok(hasher.finish() as PyHash) } -pub fn hash_iter_no_order>( +pub fn hash_iter_unordered>( iter: I, vm: &VirtualMachine, ) -> PyResult {