Skip to content

Fix crash when device doesn’t have write permission #1

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

Merged
merged 1 commit into from
Apr 27, 2021

Conversation

linkmauve
Copy link
Contributor

Prevents this panic on launch of the host example:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Access', src/lib.rs:51:61

Prevents this panic on launch of the host example:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Access', src/lib.rs:51:61
@jiegec jiegec merged commit c9079c1 into jiegec:master Apr 27, 2021
@coveralls
Copy link

coveralls commented Apr 27, 2021

Pull Request Test Coverage Report for Build 786732826

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 5 (0.0%) changed or added relevant lines in 1 file are covered.
  • 115 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+12.2%) to 45.137%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/lib.rs 0 5 0.0%
Files with Coverage Reduction New Missed Lines %
../../../../../usr/share/rust/.cargo/registry/src/github.com-1ecc6299db9ec823/rusb-0.6.5/src/device.rs 11 0.0%
src/lib.rs 16 55.86%
src/device.rs 88 56.76%
Totals Coverage Status
Change from base Build 351851736: 12.2%
Covered Lines: 543
Relevant Lines: 1203

💛 - Coveralls

@linkmauve linkmauve deleted the fix-crash-on-missing-permission branch April 27, 2021 08:06
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.

3 participants