about summary refs log tree commit diff
path: root/tvix/store/src
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-02-15T14·37+0200
committerclbot <clbot@tvl.fyi>2023-02-15T18·40+0000
commitcfa0755fc41cb643d172bda024d02e172b3f5923 (patch)
tree01af5e288e9fa20a80ba7ca1dfc3ec558d5b395f /tvix/store/src
parent3c311ffab2d3787abd034e25f0b64cdcbf3a952a (diff)
refactor(tvix/store): avoid casting to the same type r/5852
The size field already is u32, we don't need to convert here.

Change-Id: Ie29819aa2d1d8022e9bd73fcf05b140e45c967a9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8107
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/store/src')
-rw-r--r--tvix/store/src/proto.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/store/src/proto.rs b/tvix/store/src/proto.rs
index fc7fa1eff9a1..a01f09fa8fd2 100644
--- a/tvix/store/src/proto.rs
+++ b/tvix/store/src/proto.rs
@@ -220,7 +220,7 @@ impl Directory {
             + self
                 .directories
                 .iter()
-                .fold(0, |acc: u32, e| (acc + 1 + e.size) as u32)
+                .fold(0, |acc: u32, e| (acc + 1 + e.size))
     }
 
     /// Calculates the digest of a Directory, which is the blake3 hash of a