Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add accessors to underlying data. #26

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

pantsman0
Copy link

Adds extra(&self) methods to configuration, endpoint and interface descriptors.
Adds port_number(&self) method to devices.

Access to the extra data from libusb is necessary in order to identify which devices have functional interfaces that require drivers (e.g. DFU devices).

Adds `extra(&self)` methods to configuration, endpoint and interface descriptors.
Adds `port_number(&self` method to devices.

Signed-off-by: Philip Woolford <[email protected]>
Signed-off-by: Philip Woolford <[email protected]>
This change implements changes recommended by `cargo clippy`.

Signed-off-by: Philip Woolford <[email protected]>
Interface::remove expects a `usize` and an `&usize` was passed.
Signed-off-by: Philip Woolford <[email protected]>
Update `bit-set` from 0.2 to 0.5.

Signed-off-by: Philip Woolford <[email protected]>
Using `?` isn't available on 1.3 (released in 2015).

Signed-off-by: Philip Woolford <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant