diff --git a/src/db.rs b/src/db.rs index 676f336..d069c8d 100644 --- a/src/db.rs +++ b/src/db.rs @@ -91,7 +91,7 @@ impl Db { [], ); - if let Err(e) = cmd { + if cmd.is_err() { log::error!("Failed to create DB table"); process::exit(-1); } @@ -101,7 +101,7 @@ impl Db { [], ); - if let Err(e) = cmd { + if cmd.is_err() { log::error!("Failed to create DB index"); process::exit(-1); } diff --git a/src/main.rs b/src/main.rs index 3ea6b17..e050946 100644 --- a/src/main.rs +++ b/src/main.rs @@ -51,7 +51,7 @@ fn main() { logging ); let ignore_file_help = format!( - "File containg items to mark as ignored. (default: {})", + "File contains items to mark as ignored. (default: {})", ignore_file ); let lms_host_help = format!("LMS hostname or IP address (default: {})", &lms_host);