From 35d9a9097be89be0b6e4a30547f92858d2404611 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jul 2021 11:12:10 -0400 Subject: [PATCH] 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) --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- src/bug_report.rs | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ab86f2b4b..8ec4fb5bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/Cargo.toml b/Cargo.toml index d2d4e3500..4cad3915e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/bug_report.rs b/src/bug_report.rs index 5a2ed061c..95ff20831 100644 --- a/src/bug_report.rs +++ b/src/bug_report.rs @@ -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 {