Add #[inline] to some new functions
Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ impl Hash64 {
|
||||
}
|
||||
|
||||
impl BitXorAssign<u64> for Hash64 {
|
||||
#[inline]
|
||||
fn bitxor_assign(&mut self, rhs: u64) {
|
||||
self.inner ^= rhs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user