Update open crate to latest version.

This commit is contained in:
apogeeoak 2021-09-06 15:52:43 -04:00
parent 63680d0786
commit 3f9f681b9e
3 changed files with 4 additions and 3 deletions

4
Cargo.lock generated
View File

@ -984,9 +984,9 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
[[package]] [[package]]
name = "open" name = "open"
version = "1.7.1" version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dcea7a30d6b81a2423cc59c43554880feff7b57d12916f231a79f8d6d9470201" checksum = "b46b233de7d83bc167fe43ae2dda3b5b84e80e09cceba581e4decb958a4896bf"
dependencies = [ dependencies = [
"pathdiff", "pathdiff",
"winapi 0.3.9", "winapi 0.3.9",

View File

@ -24,7 +24,7 @@ handlebars = "4.0"
lazy_static = "1.0" lazy_static = "1.0"
log = "0.4" log = "0.4"
memchr = "2.0" memchr = "2.0"
open = "1.1" open = "2.0"
pulldown-cmark = "0.7.0" pulldown-cmark = "0.7.0"
regex = "1.0.0" regex = "1.0.0"
serde = "1.0" serde = "1.0"

View File

@ -132,6 +132,7 @@ fn get_book_dir(args: &ArgMatches) -> PathBuf {
} }
fn open<P: AsRef<OsStr>>(path: P) { fn open<P: AsRef<OsStr>>(path: P) {
info!("Opening web browser");
if let Err(e) = open::that(path) { if let Err(e) = open::that(path) {
error!("Error opening web browser: {}", e); error!("Error opening web browser: {}", e);
} }