Skip to content

Commit dc3c7a9

Browse files
committed
Fix lint
1 parent d317c8b commit dc3c7a9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

common/src/hash.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
use num_bigint::BigInt;
22
use num_traits::ToPrimitive;
33
use siphasher::sip::SipHasher24;
4-
use std::{
5-
hash::{BuildHasher, Hash, Hasher},
6-
};
4+
use std::hash::{BuildHasher, Hash, Hasher};
75

86
pub type PyHash = i64;
97
pub type PyUHash = u64;

vm/src/builtins/complex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ use crate::{
1313
types::{AsNumber, Comparable, Constructor, Hashable, PyComparisonOp},
1414
AsObject, Context, Py, PyObject, PyObjectRef, PyPayload, PyRef, PyResult, VirtualMachine,
1515
};
16-
use std::num::Wrapping;
1716
use num_complex::Complex64;
1817
use num_traits::Zero;
1918
use rustpython_common::{float_ops, hash};
19+
use std::num::Wrapping;
2020

2121
/// Create a complex number from a real part and an optional imaginary part.
2222
///

0 commit comments

Comments
 (0)