diff --git a/compiler/src/compiler.rs b/compiler/src/compiler.rs index 8391446535..49c2348bb1 100644 --- a/compiler/src/compiler.rs +++ b/compiler/src/compiler.rs @@ -66,8 +66,8 @@ impl> Compiler { // Hash the file contents let mut hasher = Sha256::new(); - hasher.input(unparsed_file.as_bytes()); - let hash = hasher.result(); + hasher.update(unparsed_file.as_bytes()); + let hash = hasher.finalize(); Ok(hex::encode(hash)) }