mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-24 05:01:31 +11:00
Error needs to derive Debug if we want to unwrap.
This commit is contained in:
parent
920d0dc897
commit
50a428e2ad
|
@ -19,6 +19,7 @@ use crate::pac::{
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Error type for UART operations.
|
/// Error type for UART operations.
|
||||||
|
#[derive(Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
/// Bad argument : when things overflow, ...
|
/// Bad argument : when things overflow, ...
|
||||||
BadArgument
|
BadArgument
|
||||||
|
@ -234,7 +235,7 @@ impl<D: UARTDevice> UARTPeripheral<Enabled, D> {
|
||||||
w.data().bits(*c);
|
w.data().bits(*c);
|
||||||
w
|
w
|
||||||
});
|
});
|
||||||
|
|
||||||
bytes_written += 1;
|
bytes_written += 1;
|
||||||
}
|
}
|
||||||
return Ok(&data[bytes_written..])
|
return Ok(&data[bytes_written..])
|
||||||
|
|
Loading…
Reference in a new issue