Add #[inline] to some new functions
Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
This commit is contained in:
parent
a04c09ade8
commit
073d99b25d
3 changed files with 4 additions and 0 deletions
|
@ -14,12 +14,14 @@ pub trait FingerprintComponent {
|
|||
}
|
||||
|
||||
impl FingerprintComponent for Hash64 {
|
||||
#[inline]
|
||||
fn as_u64(&self) -> u64 {
|
||||
Hash64::as_u64(*self)
|
||||
}
|
||||
}
|
||||
|
||||
impl FingerprintComponent for u64 {
|
||||
#[inline]
|
||||
fn as_u64(&self) -> u64 {
|
||||
*self
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue