Skip to content

Commit

Permalink
Update open dependency to version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasKalbertodt committed Oct 2, 2021
1 parent 90c909a commit da4e60a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 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.

3 changes: 2 additions & 1 deletion app/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ All notable changes to the penguin **CLI app** will be documented here.

## [0.2.2] - 2021-10-02

Updated the library to v0.1.4 ⇒ [check its changelog](../lib/CHANGELOG.md#014---2021-09-02).
- Updated the library to v0.1.4 ⇒ [check its changelog](../lib/CHANGELOG.md#014---2021-09-02).
- Updated other dependencies.


## [0.2.1] - 2021-07-18
Expand Down
2 changes: 1 addition & 1 deletion app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ anyhow = "1"
bunt = "0.2.4"
log = "0.4"
notify = "4"
open = "1"
open = "2"
penguin = { version = "0.1.4", path = "../lib" }
pretty_env_logger = "0.4"
structopt = "0.3"
Expand Down
8 changes: 4 additions & 4 deletions app/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ pub(crate) async fn run(

let url = format!("http://{}", bind_addr);
match open::that(url) {
Ok(c) if c.success() => {}
other => bunt::println!(
"{$yellow}Warning{/$}: couldn't open browser. Error: {:?}",
other,
Ok(_) => {}
Err(e) => bunt::println!(
"{$yellow}Warning{/$}: couldn't open browser. Error: {}",
e,
),
}
});
Expand Down

0 comments on commit da4e60a

Please sign in to comment.