Skip to content

Commit

Permalink
[usb_rs] Mark Unused Tuple Struct Fields
Browse files Browse the repository at this point in the history
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 <colnnelson@google.com>
Fuchsia-Auto-Submit: Gwen Mittertreiner <gmtr@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
  • Loading branch information
gmittert authored and Rebase bot committed Jan 23, 2024
1 parent d858674 commit 17a9440
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/usb_rs/src/usb_osx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ impl BulkOutEndpoint {
}
}

#[allow(unused_tuple_struct_fields)]
pub struct ControlEndpoint(Arc<InterfaceInterface500>);
#[allow(unused_tuple_struct_fields)]
pub struct InterruptEndpoint(Arc<InterfaceInterface500>);
#[allow(unused_tuple_struct_fields)]
pub struct IsochronousEndpoint(Arc<InterfaceInterface500>);

0 comments on commit 17a9440

Please sign in to comment.