diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2021-06-18 04:56:30 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 15:56:30 -0400 |
commit | 8031644e65647bdc3a6a0561ad31da9228e9723d (patch) | |
tree | fb2e86a305e784583770e5e27694243d9f67b79b /runtime/ops/io.rs | |
parent | 2a66d5de01b584b7138084eb427c9ac09c254986 (diff) |
chore: upgrade Rust to 1.53.0 (#11021)
Diffstat (limited to 'runtime/ops/io.rs')
-rw-r--r-- | runtime/ops/io.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ops/io.rs b/runtime/ops/io.rs index d9f21e1f5..18279c0eb 100644 --- a/runtime/ops/io.rs +++ b/runtime/ops/io.rs @@ -429,7 +429,7 @@ impl StdFileResource { .borrow_mut() .await; let nwritten = fs_file.0.as_mut().unwrap().read(buf).await?; - return Ok(nwritten); + Ok(nwritten) } else { Err(resource_unavailable()) } @@ -442,7 +442,7 @@ impl StdFileResource { .await; let nwritten = fs_file.0.as_mut().unwrap().write(buf).await?; fs_file.0.as_mut().unwrap().flush().await?; - return Ok(nwritten); + Ok(nwritten) } else { Err(resource_unavailable()) } |