diff --git a/Cargo.lock b/Cargo.lock index 55e268ad..1f723808 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -984,9 +984,9 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "open" -version = "1.7.1" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcea7a30d6b81a2423cc59c43554880feff7b57d12916f231a79f8d6d9470201" +checksum = "b46b233de7d83bc167fe43ae2dda3b5b84e80e09cceba581e4decb958a4896bf" dependencies = [ "pathdiff", "winapi 0.3.9", diff --git a/Cargo.toml b/Cargo.toml index 4316c0ce..3646a7ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ handlebars = "4.0" lazy_static = "1.0" log = "0.4" memchr = "2.0" -open = "1.1" +open = "2.0" pulldown-cmark = "0.7.0" regex = "1.0.0" serde = "1.0" diff --git a/src/main.rs b/src/main.rs index fefddf3b..4843c95d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -132,6 +132,7 @@ fn get_book_dir(args: &ArgMatches) -> PathBuf { } fn open>(path: P) { + info!("Opening web browser"); if let Err(e) = open::that(path) { error!("Error opening web browser: {}", e); }