diff rust/src/main.rs @ 639:89818a14648b rust tip

- switch to using anyhow for errors, surf for http runs but surf has problems
author Matt Johnston <matt@ucc.asn.au>
date Thu, 28 Nov 2019 23:57:00 +0800
parents a9f353f488d0
children
line wrap: on
line diff
--- a/rust/src/main.rs	Sat Nov 09 11:35:59 2019 +0800
+++ b/rust/src/main.rs	Thu Nov 28 23:57:00 2019 +0800
@@ -4,6 +4,7 @@
 
 #[macro_use] extern crate lazy_static;
 
+use anyhow::{Result};
 
 mod config;
 mod sensor;
@@ -17,9 +18,7 @@
 
 use structopt::StructOpt;
 
-use types::TemplogError;
-
-fn run(conf_file: &str, nowait: bool, testmode: bool) -> Result<(), TemplogError> {
+fn run(conf_file: &str, nowait: bool, testmode: bool) -> Result<()> {
 
     let cf = config::Config::load(conf_file)?;