mirror of https://github.com/rust-lang/rust.git
[perf] std: add missing `#[inline]` to `DefaultHasher::{new,default}`.
This commit is contained in:
parent
303ab3465c
commit
a4f1331b9d
|
@ -3140,6 +3140,7 @@ impl DefaultHasher {
|
||||||
/// `DefaultHasher` instances, but is the same as all other `DefaultHasher`
|
/// `DefaultHasher` instances, but is the same as all other `DefaultHasher`
|
||||||
/// instances created through `new` or `default`.
|
/// instances created through `new` or `default`.
|
||||||
#[stable(feature = "hashmap_default_hasher", since = "1.13.0")]
|
#[stable(feature = "hashmap_default_hasher", since = "1.13.0")]
|
||||||
|
#[inline]
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn new() -> DefaultHasher {
|
pub fn new() -> DefaultHasher {
|
||||||
|
@ -3153,6 +3154,7 @@ impl Default for DefaultHasher {
|
||||||
/// See its documentation for more.
|
/// See its documentation for more.
|
||||||
///
|
///
|
||||||
/// [`new`]: DefaultHasher::new
|
/// [`new`]: DefaultHasher::new
|
||||||
|
#[inline]
|
||||||
fn default() -> DefaultHasher {
|
fn default() -> DefaultHasher {
|
||||||
DefaultHasher::new()
|
DefaultHasher::new()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue