Skip to content

Commit 0636a42

Browse files
tottotoseanmonstar
authored andcommitted
refactor(header): remove multiple bound location
1 parent c97f7dd commit 0636a42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/header/map.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,9 +1449,9 @@ impl<T> HeaderMap<T> {
14491449
}
14501450

14511451
#[inline]
1452-
fn find<K: ?Sized>(&self, key: &K) -> Option<(usize, usize)>
1452+
fn find<K>(&self, key: &K) -> Option<(usize, usize)>
14531453
where
1454-
K: Hash + Into<HeaderName>,
1454+
K: Hash + Into<HeaderName> + ?Sized,
14551455
HeaderName: PartialEq<K>,
14561456
{
14571457
if self.entries.is_empty() {
@@ -3603,9 +3603,9 @@ fn probe_distance(mask: Size, hash: HashValue, current: usize) -> usize {
36033603
current.wrapping_sub(desired_pos(mask, hash)) & mask as usize
36043604
}
36053605

3606-
fn hash_elem_using<K: ?Sized>(danger: &Danger, k: &K) -> HashValue
3606+
fn hash_elem_using<K>(danger: &Danger, k: &K) -> HashValue
36073607
where
3608-
K: Hash,
3608+
K: Hash + ?Sized,
36093609
{
36103610
use fnv::FnvHasher;
36113611

0 commit comments

Comments
 (0)