diff options
author | Brian Cully <bjc@kublai.com> | 2019-07-28 10:22:33 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2019-07-28 10:22:33 -0400 |
commit | f39e0425a67277556db1c55547574b4205ed03e9 (patch) | |
tree | 50e09062edde2db6ec593b0580ffda0c98a037ca /usbh/src/lib.rs | |
parent | b1ef816d00ad5fb6048007611c5b091e2540c306 (diff) | |
download | samd21-demo-f39e0425a67277556db1c55547574b4205ed03e9.tar.gz samd21-demo-f39e0425a67277556db1c55547574b4205ed03e9.zip |
Use TryFrom where possible, instead of panicking.
Diffstat (limited to 'usbh/src/lib.rs')
-rwxr-xr-x | usbh/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usbh/src/lib.rs b/usbh/src/lib.rs index c4e2426..4bad707 100755 --- a/usbh/src/lib.rs +++ b/usbh/src/lib.rs @@ -374,7 +374,7 @@ where match self.devices.next(self.millis) { // TODO: new error for being out of devices. - None => Err(PipeErr::Other), + None => Err(PipeErr::Other("out of devices")), Some(device) => { device.max_packet_size = desc.b_max_packet_size; debug!("Setting address to {}.", device.addr); |