File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -242,10 +242,7 @@ where
242
242
Q : Hash + ?Sized ,
243
243
S : BuildHasher ,
244
244
{
245
- use core:: hash:: Hasher ;
246
- let mut state = hash_builder. build_hasher ( ) ;
247
- val. hash ( & mut state) ;
248
- state. finish ( )
245
+ hash_builder. hash_one ( val)
249
246
}
250
247
251
248
#[ cfg( feature = "nightly" ) ]
@@ -2022,7 +2019,7 @@ where
2022
2019
}
2023
2020
2024
2021
self . iter ( )
2025
- . all ( |( key, value) | other. get ( key) . map_or ( false , |v| * value == * v) )
2022
+ . all ( |( key, value) | other. get ( key) . is_some_and ( |v| * value == * v) )
2026
2023
}
2027
2024
}
2028
2025
@@ -4486,7 +4483,7 @@ where
4486
4483
let reserve = if self . is_empty ( ) {
4487
4484
iter. size_hint ( ) . 0
4488
4485
} else {
4489
- ( iter. size_hint ( ) . 0 + 1 ) / 2
4486
+ iter. size_hint ( ) . 0 . div_ceil ( 2 )
4490
4487
} ;
4491
4488
self . reserve ( reserve) ;
4492
4489
iter. for_each ( move |( k, v) | {
You can’t perform that action at this time.
0 commit comments