improve error handling and request timing

This commit is contained in:
Robert 2022-12-17 19:01:47 +01:00
parent 4a5a7e0f74
commit 0055db7445
4 changed files with 101 additions and 30 deletions

View file

@ -1,9 +1,11 @@
use std::error::Error;
use b15f::B15F;
fn main() -> Result<(), Box<dyn Error>>{
let drv = B15F::new()?;
Ok(())
fn main() {
let _drv = match B15F::new() {
Ok(val) => val,
Err(error) => {
eprintln!("{error}");
return;
}
};
}