Skip to content

Commit

Permalink
[rust] Avoid warning for unused fields
Browse files Browse the repository at this point in the history
Upstream rustc has expanded the unused field lint to to not count
usages performed by derived Clone and Debug implementations.
rust-lang/rust#85200

This CL marks such fields with an #[allow(unused)] tag.

Bug: 84550
Change-Id: Ie5a84dd7c941b47419eb2a011a8daed22fc16695
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/581062
Fuchsia-Auto-Submit: Adrian Danis <adanis@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
Reviewed-by: Tyler Mandry <tmandry@google.com>
  • Loading branch information
AdrianDanis authored and CQ Bot committed Sep 14, 2021
1 parent bef1051 commit 09d43ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/storage/storage_device/src/block_device.rs
Expand Up @@ -21,6 +21,7 @@ struct VmoBufferSource {
vmoid: VmoId,
// This needs to be 'static because the BufferSource trait requires 'static.
slice: UnsafeCell<&'static mut [u8]>,
#[allow(unused)]
vmo: zx::Vmo,
}

Expand Down

0 comments on commit 09d43ca

Please sign in to comment.