Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 94b38a5

Browse filesBrowse files
authored
Fix build (#5765)
1 parent 253cc4e commit 94b38a5
Copy full SHA for 94b38a5

File tree

1 file changed

+1
-2
lines changed
Filter options

1 file changed

+1
-2
lines changed

‎vm/src/dict_inner.rs

Copy file name to clipboardExpand all lines: vm/src/dict_inner.rs
+1-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.