Skip to content

Commit

Permalink
[rust] Remove unneeded must_use annotations
Browse files Browse the repository at this point in the history
The Future type that an async function implicitly returns is already
implicitly marked as must_use, and additional must_use annotations on
async functions are, therefore, redundant. These unneeded annotations
generate a warning, which is an error in our build, with this change to
the rust compiler rust-lang/rust#89610

Bug: 88999
Change-Id: I84685942c30eeaf98ad9597285d289d5bcbc12d3
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/608581
Reviewed-by: Abdulla Kamar <[email protected]>
Fuchsia-Auto-Submit: Adrian Danis <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
  • Loading branch information
AdrianDanis authored and CQ Bot committed Nov 18, 2021
1 parent 6764513 commit 3e39204
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/storage/vfs/rust/src/directory/connection/io1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ where
seek: TraversalPosition,
}

#[must_use = "handle_requests() returns an async task that needs to be run"]
pub(in crate::directory) async fn handle_requests<Connection>(
mut requests: DirectoryAdminRequestStream,
mut connection: Connection,
Expand Down

0 comments on commit 3e39204

Please sign in to comment.