Update dependencies

This commit is contained in:
timvisee 2021-08-26 20:37:43 +02:00
parent cf8c13afa2
commit 4593ece50f
No known key found for this signature in database
GPG key ID: B8DB720BC383E172
3 changed files with 304 additions and 244 deletions

540
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -118,7 +118,7 @@ failure = "0.1"
ffsend-api = { version = "0.7.2", default-features = false }
fs2 = "0.4"
lazy_static = "1.4"
open = "1"
open = "2"
openssl-probe = "0.1"
pathdiff = "0.2"
pbr = "1"

View file

@ -16,7 +16,7 @@ use std::io::{stderr, stdin, Error as IoError, Write};
use std::iter;
use std::path::Path;
use std::path::PathBuf;
use std::process::{exit, ExitStatus};
use std::process::exit;
#[cfg(feature = "clipboard-bin")]
use std::process::{Command, Stdio};
@ -292,13 +292,13 @@ pub fn highlight_info(msg: &str) -> ColoredString {
/// Open the given URL in the users default browser.
/// The browsers exit status is returned.
pub fn open_url(url: impl Borrow<Url>) -> Result<ExitStatus, IoError> {
pub fn open_url(url: impl Borrow<Url>) -> Result<(), IoError> {
open_path(url.borrow().as_str())
}
/// Open the given path or URL using the program configured on the system.
/// The program exit status is returned.
pub fn open_path(path: &str) -> Result<ExitStatus, IoError> {
pub fn open_path(path: &str) -> Result<(), IoError> {
open::that(path)
}