forked from Rust-related/RustPython
Rename hash_iter_no_order to hash_iter_unordered
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user