Skip to content

Commit 09d43ca

Browse files
AdrianDanisCQ Bot
authored and
CQ Bot
committed
[rust] Avoid warning for unused fields
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 <[email protected]> Commit-Queue: Auto-Submit <[email protected]> Reviewed-by: Tyler Mandry <[email protected]>
1 parent bef1051 commit 09d43ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/storage/storage_device/src/block_device.rs

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ struct VmoBufferSource {
2121
vmoid: VmoId,
2222
// This needs to be 'static because the BufferSource trait requires 'static.
2323
slice: UnsafeCell<&'static mut [u8]>,
24+
#[allow(unused)]
2425
vmo: zx::Vmo,
2526
}
2627

0 commit comments

Comments
 (0)