Skip to content

Commit

Permalink
Merge pull request #1643 from apogeeoak/update-open
Browse files Browse the repository at this point in the history
Update open crate to latest version.
  • Loading branch information
ehuss authored Sep 7, 2021
2 parents 63680d0 + 3f9f681 commit 93008cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ fn get_book_dir(args: &ArgMatches) -> PathBuf {
}

fn open<P: AsRef<OsStr>>(path: P) {
info!("Opening web browser");
if let Err(e) = open::that(path) {
error!("Error opening web browser: {}", e);
}
Expand Down

0 comments on commit 93008cf

Please sign in to comment.