From ce4d87b12966fdeb0bd66b5f6b943bb4cde53669 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 1 Feb 2023 11:13:37 +0100 Subject: refactor(tvix/nix-compat): remove unneeded return Change-Id: I97b9fb3ad33d2f51baf29486d4eff11f8dedcbab Reviewed-on: https://cl.tvl.fyi/c/depot/+/7994 Tested-by: BuildkiteCI Reviewed-by: tazjin Autosubmit: flokli --- tvix/nix-compat/src/nixbase32.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tvix/nix-compat/src/nixbase32.rs b/tvix/nix-compat/src/nixbase32.rs index 28c9e07d2e60..ad67601eeb1e 100644 --- a/tvix/nix-compat/src/nixbase32.rs +++ b/tvix/nix-compat/src/nixbase32.rs @@ -99,7 +99,7 @@ pub fn decode(input: &[u8]) -> Result, Nixbase32DecodeError> { /// Returns the decoded length of an input of length len. pub fn decode_len(len: usize) -> usize { - return (len * 5) / 8; + (len * 5) / 8 } /// Returns the encoded length of an input of length len @@ -107,7 +107,7 @@ pub fn encode_len(len: usize) -> usize { if len == 0 { return 0; } - return (len * 8 - 1) / 5 + 1; + (len * 8 - 1) / 5 + 1 } #[cfg(test)] -- cgit 1.4.1