We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94dffc4 commit cd593cdCopy full SHA for cd593cd
src/platform/linux_usbfs/device.rs
@@ -410,7 +410,9 @@ impl LinuxDevice {
410
) -> Result<Arc<LinuxInterface>, Error> {
411
result.map_err(|e| {
412
match e {
413
- Errno::INVAL => Error::new_os(ErrorKind::NotFound, "interface not found", e),
+ Errno::INVAL | Errno::NOENT => {
414
+ Error::new_os(ErrorKind::NotFound, "interface not found", e)
415
+ }
416
Errno::BUSY => Error::new_os(ErrorKind::Busy, "interface is busy", e),
417
Errno::NODEV => Error::new_os(ErrorKind::Disconnected, "device disconnected", e),
418
_ => Error::new_os(ErrorKind::Other, "failed to claim interface", e),
0 commit comments