From e60934a129420ed283a587dce77f30519d750307 Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Wed, 15 Jan 2020 10:41:06 -0500 Subject: [PATCH] more consistent use of Self in the reference impl --- reference_impl/reference_impl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference_impl/reference_impl.rs b/reference_impl/reference_impl.rs index 16584cd..2488343 100644 --- a/reference_impl/reference_impl.rs +++ b/reference_impl/reference_impl.rs @@ -307,7 +307,7 @@ impl Hasher { /// Construct a new `Hasher` for the key derivation function. The context /// string should be hardcoded, globally unique, and application-specific. pub fn new_derive_key(context: &str) -> Self { - let mut context_hasher = Hasher::new_internal(IV, DERIVE_KEY_CONTEXT); + let mut context_hasher = Self::new_internal(IV, DERIVE_KEY_CONTEXT); context_hasher.update(context.as_bytes()); let mut context_key = [0; KEY_LEN]; context_hasher.finalize(&mut context_key);