about summary refs log tree commit diff
path: root/tvix/castore/src
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-04-15T13·12+0300
committerclbot <clbot@tvl.fyi>2024-04-15T15·09+0000
commitd1da9f5c84b340067fb9daf952bb1a850f8ce7bf (patch)
tree934df4f309b7230fe552dc063b8ff65b876dcfe6 /tvix/castore/src
parentb025a30d271458386769e8721231e1e219481f57 (diff)
refactor(tvix/castore/fs): add parenthesis for readability r/7932
As suggested in cl/11426.

Change-Id: Ic2bb8cf2838bf0be09fb8bc62b8e598a3d153699
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11434
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Diffstat (limited to 'tvix/castore/src')
-rw-r--r--tvix/castore/src/fs/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tvix/castore/src/fs/mod.rs b/tvix/castore/src/fs/mod.rs
index b714bad1e868..0da811528172 100644
--- a/tvix/castore/src/fs/mod.rs
+++ b/tvix/castore/src/fs/mod.rs
@@ -480,7 +480,7 @@ where
 
                 let written = add_entry(fuse_backend_rs::api::filesystem::DirEntry {
                     ino,
-                    offset: offset + i as u64 + 1,
+                    offset: offset + (i as u64) + 1,
                     type_: inode_data.as_fuse_type(),
                     name: &name,
                 })?;
@@ -502,7 +502,7 @@ where
             // the second parameter will become the "offset" parameter on the next call.
             let written = add_entry(fuse_backend_rs::api::filesystem::DirEntry {
                 ino,
-                offset: offset + i as u64 + 1,
+                offset: offset + (i as u64) + 1,
                 type_: inode_data.as_fuse_type(),
                 name: &name,
             })?;
@@ -568,7 +568,7 @@ where
                 let written = add_entry(
                     fuse_backend_rs::api::filesystem::DirEntry {
                         ino,
-                        offset: offset + i as u64 + 1,
+                        offset: offset + (i as u64) + 1,
                         type_: inode_data.as_fuse_type(),
                         name: &name,
                     },
@@ -593,7 +593,7 @@ where
             let written = add_entry(
                 fuse_backend_rs::api::filesystem::DirEntry {
                     ino,
-                    offset: offset + i as u64 + 1,
+                    offset: offset + (i as u64) + 1,
                     type_: inode_data.as_fuse_type(),
                     name: &name,
                 },