From 8a0fa69c6cd031b76d97442e3fe0176b6abb213e Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 14 Oct 2023 21:34:18 +0100 Subject: feat(tvix/nix-compat/nixhash/NixHashWithMode): from_algo_mode_hash Change-Id: Ieae628fab1926a498ae5c3eb27df1b722e6151d7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9728 Reviewed-by: edef Autosubmit: flokli Tested-by: BuildkiteCI --- tvix/nix-compat/src/nixhash/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tvix/nix-compat/src/nixhash/mod.rs') diff --git a/tvix/nix-compat/src/nixhash/mod.rs b/tvix/nix-compat/src/nixhash/mod.rs index 3b2810b8b0bf..9586473d1b9a 100644 --- a/tvix/nix-compat/src/nixhash/mod.rs +++ b/tvix/nix-compat/src/nixhash/mod.rs @@ -65,8 +65,8 @@ impl TryFrom<(HashAlgo, &[u8])> for NixHash { } /// Constructs a new [NixHash] by specifying [HashAlgo] and digest. -// It can fail if the passed digest length doesn't match what's expected for -// the passed algo. +/// It can fail if the passed digest length doesn't match what's expected for +/// the passed algo. pub fn from_algo_and_digest(algo: HashAlgo, digest: &[u8]) -> Result { if digest.len() != algo.digest_length() { return Err(Error::InvalidEncodedDigestLength(digest.len(), algo)); -- cgit 1.4.1