Fix lint issues and add comments

Lint issues:
- spelling problems
- iter instead of into_iter
This commit is contained in:
Robert Sammelson 2025-03-20 02:17:56 -04:00
parent db4b4d990d
commit 1171380877
No known key found for this signature in database
GPG key ID: BEA2C00D29709D51
6 changed files with 21 additions and 7 deletions

View file

@ -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))
}
}