mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
chore(deps) Update Rust crate open to v2 (#2306)
* chore(deps) Update Rust crate open to v2 * fix build Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
@@ -63,7 +63,7 @@ notify-rust = { version = "4.5", optional = true }
|
||||
reqwest = { version = "0.11", features = [ "json", "multipart" ], optional = true }
|
||||
bytes = { version = "1", features = [ "serde" ], optional = true }
|
||||
attohttpc = { version = "0.17", features = [ "json", "form" ] }
|
||||
open = { version = "1.7", optional = true }
|
||||
open = { version = "2.0", optional = true }
|
||||
shared_child = { version = "0.3", optional = true }
|
||||
os_pipe = { version = "0.9", optional = true }
|
||||
rfd = "0.4.1"
|
||||
|
||||
@@ -10,18 +10,7 @@ pub fn open(path: String, with: Option<String>) -> crate::api::Result<()> {
|
||||
} else {
|
||||
open::that(&path)
|
||||
};
|
||||
match exit_status {
|
||||
Ok(status) => {
|
||||
if status.success() {
|
||||
Ok(())
|
||||
} else {
|
||||
Err(crate::api::Error::Shell("open command failed".into()))
|
||||
}
|
||||
}
|
||||
Err(err) => Err(crate::api::Error::Shell(format!(
|
||||
"failed to open: {}",
|
||||
err.to_string()
|
||||
))),
|
||||
}
|
||||
exit_status
|
||||
.map_err(|err| crate::api::Error::Shell(format!("failed to open: {}", err.to_string())))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user