Fix lint issues and add comments
Lint issues: - spelling problems - iter instead of into_iter
This commit is contained in:
parent
db4b4d990d
commit
1171380877
6 changed files with 21 additions and 7 deletions
|
@ -27,12 +27,12 @@ impl From<super::device::Error> for Error {
|
|||
|
||||
impl From<std::num::ParseIntError> for Error {
|
||||
fn from(e: std::num::ParseIntError) -> Self {
|
||||
Error::Other(format!("invalid data recieved: {:?}", e))
|
||||
Error::Other(format!("invalid data received: {:?}", e))
|
||||
}
|
||||
}
|
||||
|
||||
impl From<std::string::FromUtf8Error> for Error {
|
||||
fn from(e: std::string::FromUtf8Error) -> Self {
|
||||
Error::Other(format!("invalid string recieved: {:?}", e))
|
||||
Error::Other(format!("invalid string received: {:?}", e))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue