Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wasm-forge committed Aug 8, 2024
1 parent 66dc545 commit 21db757
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,15 @@ mod tests {
memory1.write(i as u64 * len as u64, content.as_bytes());
}

let fd = fs.open_or_create(fs.root_fd, file_name, FdStat::default(), OpenFlags::empty(), 0).unwrap();
let fd = fs
.open_or_create(
fs.root_fd,
file_name,
FdStat::default(),
OpenFlags::empty(),
0,
)
.unwrap();
let mut metadata = fs.metadata(fd).unwrap();
metadata.size = len as FileSize * count as FileSize;
fs.set_metadata(fd, metadata).unwrap();
Expand Down

0 comments on commit 21db757

Please sign in to comment.