Skip to content

Commit 17a9440

Browse files
gmittertRebase bot
authored andcommitted
[usb_rs] Mark Unused Tuple Struct Fields
An upcoming rustc change (rust-lang/rust#118297) marks unused tuple fields as dead code. Explicitly mark these structs as allowed to silence the warning/error. Bug: 319472617 Change-Id: I248861cd1343a2906a1e97f7e4af06115913eb88 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/978876 Reviewed-by: Colin Nelson <[email protected]> Fuchsia-Auto-Submit: Gwen Mittertreiner <[email protected]> Commit-Queue: Auto-Submit <[email protected]>
1 parent d858674 commit 17a9440

File tree

1 file changed

+3
-0
lines changed
  • src/lib/usb_rs/src/usb_osx

1 file changed

+3
-0
lines changed

src/lib/usb_rs/src/usb_osx/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@ impl BulkOutEndpoint {
371371
}
372372
}
373373

374+
#[allow(unused_tuple_struct_fields)]
374375
pub struct ControlEndpoint(Arc<InterfaceInterface500>);
376+
#[allow(unused_tuple_struct_fields)]
375377
pub struct InterruptEndpoint(Arc<InterfaceInterface500>);
378+
#[allow(unused_tuple_struct_fields)]
376379
pub struct IsochronousEndpoint(Arc<InterfaceInterface500>);

0 commit comments

Comments
 (0)