Skip to content

Commit

Permalink
Fix whitespace errors in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtriplett committed Jun 20, 2022
1 parent 1785b90 commit 955fa65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fs/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -904,13 +904,13 @@ mod tests {
}

#[test]
fn async_file_create_error () {
fn async_file_create_error() {
let file_name = Path::new("/tmp/does_not_exist/test");
let expect = std::fs::File::create(file_name).unwrap_err();

crate::task::block_on(async move {
let actual = File::create(file_name).await.unwrap_err();
assert_eq!(format!("{}", expect), format!("{}", actual));
assert_eq!(format!("{}", expect), format!("{}", actual));
})
}
}

0 comments on commit 955fa65

Please sign in to comment.