Skip to content

Commit

Permalink
Fix format error
Browse files Browse the repository at this point in the history
  • Loading branch information
diqiu50 committed Jan 17, 2025
1 parent 4093a6c commit b654b36
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions clients/filesystem-fuse/src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,11 @@ pub(crate) mod tests {

// Test create file
let file_handle = self
.test_create_file(parent_file_id, "file1.txt".as_ref(), (O_CREAT | O_WRONLY) as u32)
.test_create_file(
parent_file_id,
"file1.txt".as_ref(),
(O_CREAT | O_WRONLY) as u32,
)
.await;

// Test write file
Expand Down Expand Up @@ -545,11 +549,13 @@ pub(crate) mod tests {
self.files.insert(file_stat.file_id, file_stat);
}

async fn test_create_file(&mut self, root_file_id: u64, name: &OsStr, flags: u32) -> FileHandle {
let file = self
.fs
.create_file(root_file_id, name, flags)
.await;
async fn test_create_file(
&mut self,
root_file_id: u64,
name: &OsStr,
flags: u32,
) -> FileHandle {
let file = self.fs.create_file(root_file_id, name, flags).await;
assert!(file.is_ok());
let file = file.unwrap();
assert!(file.handle_id > 0);
Expand Down

0 comments on commit b654b36

Please sign in to comment.