1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-25 11:20:01 +00:00

build: bump open from 1.7.1 to 2.0.0 (#2916)

* build: bump open from 1.7.1 to 2.0.0

Bumps [open](https://github.com/Byron/open-rs) from 1.7.1 to 2.0.0.
- [Release notes](https://github.com/Byron/open-rs/releases)
- [Changelog](https://github.com/Byron/open-rs/blob/main/changelog.md)
- [Commits](https://github.com/Byron/open-rs/compare/v1.7.1...v2.0.0)
This commit is contained in:
dependabot[bot] 2021-07-26 11:12:10 -04:00 committed by GitHub
parent ed60b69bcc
commit 35d9a9097b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 7 deletions

4
Cargo.lock generated
View File

@ -1110,9 +1110,9 @@ checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c"
[[package]]
name = "open"
version = "1.7.1"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dcea7a30d6b81a2423cc59c43554880feff7b57d12916f231a79f8d6d9470201"
checksum = "970d0e0b8f5f39e6090f3d612e3a17b8e02b91c860fe9eb33665d1aed1f6f37f"
dependencies = [
"pathdiff",
"winapi",

View File

@ -56,7 +56,7 @@ pest_derive = "2.1.0"
regex = "1.5.4"
os_info = "3.0.6"
urlencoding = "2.1.0"
open = "1.7.1"
open = "2.0.0"
unicode-width = "0.1.8"
term_size = "0.3.2"
quick-xml = "0.22.0"

View File

@ -24,10 +24,7 @@ pub fn create() {
let link = make_github_issue_link(environment);
let short_link = shorten_link(&link);
if open::that(&link)
.map(|status| status.success())
.unwrap_or(false)
{
if open::that(&link).is_ok() {
println!("Take a look at your browser. A GitHub issue has been populated with your configuration.");
println!("If your browser has failed to open, please click this link:\n");
} else {