mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Fix build (#5765)
This commit is contained in:
@@ -17,7 +17,6 @@ use crate::{
|
||||
object::{Traverse, TraverseFn},
|
||||
};
|
||||
use num_traits::ToPrimitive;
|
||||
use rustpython_common::hash::hash_integer;
|
||||
use std::{fmt, mem::size_of, ops::ControlFlow};
|
||||
|
||||
// HashIndex is intended to be same size with hash::PyHash
|
||||
@@ -995,7 +994,7 @@ impl DictKey for usize {
|
||||
}
|
||||
|
||||
fn key_hash(&self, _vm: &VirtualMachine) -> PyResult<HashValue> {
|
||||
Ok(hash_usize(*self))
|
||||
Ok(hash::hash_usize(*self))
|
||||
}
|
||||
|
||||
fn key_is(&self, _other: &PyObject) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user