From 5a91719755f3d57ac64a3c44d2285e11a8245d78 Mon Sep 17 00:00:00 2001 From: Shing Him Ng Date: Fri, 2 Aug 2024 18:20:23 -0500 Subject: [PATCH] Rename Siphash::as_u64 to Siphash::to_u64 --- hashes/src/siphash24.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashes/src/siphash24.rs b/hashes/src/siphash24.rs index 8969858b2..2e57adcdd 100644 --- a/hashes/src/siphash24.rs +++ b/hashes/src/siphash24.rs @@ -206,7 +206,7 @@ impl Hash { } /// Returns the (little endian) 64-bit integer representation of the hash value. - pub fn as_u64(&self) -> u64 { u64::from_le_bytes(self.0) } + pub fn to_u64(&self) -> u64 { u64::from_le_bytes(self.0) } /// Creates a hash from its (little endian) 64-bit integer representation. pub fn from_u64(hash: u64) -> Hash { Hash(hash.to_le_bytes()) }