remove all unwraps :)

This commit is contained in:
Vladan Popovic 2022-06-16 01:39:16 +02:00
parent 43424ba997
commit 17b54fbe3a
4 changed files with 11 additions and 6 deletions

View file

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