From 69ba6cf88783d42434768883c4a2b5eb97435371 Mon Sep 17 00:00:00 2001 From: Aviv Palivoda Date: Sat, 29 Feb 2020 09:40:16 +0200 Subject: [PATCH] Rename hash_iter_no_order to hash_iter_unordered --- vm/src/obj/objset.rs | 3 +-- vm/src/pyhash.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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 {