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 <tazjin@tvl.su> Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
parent
894d17b29b
commit
ce4d87b129
1 changed files with 2 additions and 2 deletions
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue