diff --git a/Cargo.lock b/Cargo.lock index ab86f2b4..8ec4fb5b 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 d2d4e350..4cad3915 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 5a2ed061..95ff2083 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 {