Rename hash_iter_no_order to hash_iter_unordered

This commit is contained in:
Aviv Palivoda
2020-02-29 09:40:16 +02:00
parent 3db197c4b1
commit 69ba6cf887
2 changed files with 2 additions and 3 deletions

View File

@@ -337,8 +337,7 @@ impl PySetInner {
}
fn hash(&self, vm: &VirtualMachine) -> PyResult<pyhash::PyHash> {
// let items: Vec<PyObjectRef> = self.content.keys().collect();
pyhash::hash_iter_no_order(self.content.keys(), vm)
pyhash::hash_iter_unordered(self.content.keys(), vm)
}
}

View File

@@ -84,7 +84,7 @@ pub fn hash_iter<'a, I: std::iter::Iterator<Item = &'a PyObjectRef>>(
Ok(hasher.finish() as PyHash)
}
pub fn hash_iter_no_order<I: std::iter::Iterator<Item = PyObjectRef>>(
pub fn hash_iter_unordered<I: std::iter::Iterator<Item = PyObjectRef>>(
iter: I,
vm: &VirtualMachine,
) -> PyResult<PyHash> {