diff --git a/garnet/public/rust/fuchsia-vfs/fuchsia-vfs-pseudo-fs/src/file/asynchronous.rs b/garnet/public/rust/fuchsia-vfs/fuchsia-vfs-pseudo-fs/src/file/asynchronous.rs index 4d9955a90ea92c2931acfb0f5118f6932984bd52..ab5c2be23dd04ee15c0e074346ad490500fdc349 100644 --- a/garnet/public/rust/fuchsia-vfs/fuchsia-vfs-pseudo-fs/src/file/asynchronous.rs +++ b/garnet/public/rust/fuchsia-vfs/fuchsia-vfs-pseudo-fs/src/file/asynchronous.rs @@ -29,7 +29,8 @@ use { crate::directory::entry::{DirectoryEntry, EntryInfo}, crate::file::{ connection::{ - BufferResult, ConnectionState, FileConnection, FileConnectionFuture, InitialConnectionState, + BufferResult, ConnectionState, FileConnection, FileConnectionFuture, + InitialConnectionState, }, DEFAULT_READ_ONLY_PROTECTION_ATTRIBUTES, DEFAULT_READ_WRITE_PROTECTION_ATTRIBUTES, DEFAULT_WRITE_ONLY_PROTECTION_ATTRIBUTES, @@ -782,13 +783,12 @@ mod tests { fn write_error() { run_server_client( OPEN_RIGHT_WRITABLE, - write_only( - 100, - |content| fast_future!({ + write_only(100, |content| { + fast_future!({ assert_eq!(*&content, b"Wrong format"); Err(Status::INVALID_ARGS) - }), - ), + }) + }), async move |proxy| { assert_write!(proxy, "Wrong"); assert_write!(proxy, " format");