about summary refs log tree commit diff
path: root/tvix/nix-compat/src
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/nix-compat/src')
-rw-r--r--tvix/nix-compat/src/nixbase32.rs4
1 files 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<Vec<u8>, 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)]