8000 Fix build (#5765) · RustPython/RustPython@94b38a5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 94b38a5

Browse files
authored
Fix build (#5765)
1 parent 253cc4e commit 94b38a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vm/src/dict_inner.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use crate::{
1717
object::{Traverse, TraverseFn},
1818
};
1919
use num_traits::ToPrimitive;
20-
use rustpython_common::hash::hash_integer;
2120
use std::{fmt, mem::size_of, ops::ControlFlow};
2221

2322
// HashIndex is intended to be same size with hash::PyHash
@@ -995,7 +994,7 @@ impl DictKey for usize {
995994
}
996995

997996
fn key_hash(&self, _vm: &VirtualMachine) -> PyResult<HashValue> {
998-
Ok(hash_usize(*self))
997+
Ok(hash::hash_usize(*self))
999998
}
1000999

10011000
fn key_is(&self, _other: &PyObject) -> bool {

0 commit comments

Comments
 (0)
0