File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ pub enum DefaultHashBuilder {}
18
18
19
19
/// A hash map implemented with quadratic probing and SIMD lookup.
20
20
///
21
- /// The default hashing algorithm is currently [AHash], though this is
21
+ /// The default hashing algorithm is currently [` AHash` ], though this is
22
22
/// subject to change at any point in the future. This hash function is very
23
23
/// fast for all types of keys, but this algorithm will typically *not* protect
24
24
/// against attacks such as HashDoS.
@@ -145,7 +145,7 @@ pub enum DefaultHashBuilder {}
145
145
/// [`with_hasher`]: #method.with_hasher
146
146
/// [`with_capacity_and_hasher`]: #method.with_capacity_and_hasher
147
147
/// [`fnv`]: https://crates.io/crates/fnv
148
- /// [AHash]: https://crates.io/crates/ahash
148
+ /// [` AHash` ]: https://crates.io/crates/ahash
149
149
///
150
150
/// ```
151
151
/// use hashbrown::HashMap;
Original file line number Diff line number Diff line change @@ -74,17 +74,17 @@ impl Fallibility {
74
74
#[ inline]
75
75
fn capacity_overflow ( self ) -> CollectionAllocErr {
76
76
match self {
77
- Fallibility :: Fallible => CollectionAllocErr :: CapacityOverflow ,
78
- Fallibility :: Infallible => panic ! ( "Hash table capacity overflow" ) ,
77
+ Self :: Fallible => CollectionAllocErr :: CapacityOverflow ,
78
+ Self :: Infallible => panic ! ( "Hash table capacity overflow" ) ,
79
79
}
80
80
}
81
81
82
82
/// Error to return on allocation error.
83
83
#[ inline]
84
84
fn alloc_err ( self , layout : Layout ) -> CollectionAllocErr {
85
85
match self {
86
- Fallibility :: Fallible => CollectionAllocErr :: AllocErr { layout } ,
87
- Fallibility :: Infallible => handle_alloc_error ( layout) ,
86
+ Self :: Fallible => CollectionAllocErr :: AllocErr { layout } ,
87
+ Self :: Infallible => handle_alloc_error ( layout) ,
88
88
}
89
89
}
90
90
}
You can’t perform that action at this time.
0 commit comments