remove all unwraps :)
This commit is contained in:
parent
43424ba997
commit
17b54fbe3a
4 changed files with 11 additions and 6 deletions
|
@ -2,6 +2,7 @@ use crate::command::Command;
|
|||
|
||||
use std::iter::FromIterator;
|
||||
use std::thread;
|
||||
use std::error::Error;
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
use embedded_hal::serial::{Read, Write};
|
||||
|
@ -21,6 +22,8 @@ pub enum ModemError {
|
|||
SetupError(String),
|
||||
}
|
||||
|
||||
impl Error for ModemError {}
|
||||
|
||||
impl std::fmt::Display for ModemError {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||
write!(f, "{:?}", self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue