From d1da9f5c84b340067fb9daf952bb1a850f8ce7bf Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 15 Apr 2024 16:12:43 +0300 Subject: refactor(tvix/castore/fs): add parenthesis for readability As suggested in cl/11426. Change-Id: Ic2bb8cf2838bf0be09fb8bc62b8e598a3d153699 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11434 Reviewed-by: raitobezarius Autosubmit: flokli Tested-by: BuildkiteCI Reviewed-by: Connor Brewster --- tvix/castore/src/fs/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tvix/castore') 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, }, -- cgit 1.4.1