about summary refs log tree commit diff
path: root/tvix/nix-compat/src/nixbase32.rs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-02-01T10·13+0100
committerclbot <clbot@tvl.fyi>2023-02-01T13·38+0000
commitce4d87b12966fdeb0bd66b5f6b943bb4cde53669 (patch)
tree9d0149461174a12391e5c40d47033ae732c39573 /tvix/nix-compat/src/nixbase32.rs
parent894d17b29b23cc45cfd408e693923a7af3d4390a (diff)
refactor(tvix/nix-compat): remove unneeded return r/5802
Change-Id: I97b9fb3ad33d2f51baf29486d4eff11f8dedcbab
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7994
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/nix-compat/src/nixbase32.rs')
-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)]