jiegec / usbip

A Rust library to run a USB/IP server
MIT License
255 stars 25 forks source link

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

Closed linkmauve closed 3 years ago

linkmauve commented 3 years ago

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
coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 786732826


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/lib.rs 0 5 0.0%
<!-- Total: 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%
src/lib.rs 16 55.86%
src/device.rs 88 56.76%
<!-- Total: 115 -->
Totals Coverage Status
Change from base Build 351851736: 12.2%
Covered Lines: 543
Relevant Lines: 1203

💛 - Coveralls