mirror of
https://github.com/project-gauntlet/gauntlet.git
synced 2025-12-23 10:35:53 +00:00
Fix build on macOS
This commit is contained in:
parent
26695673a9
commit
d3cc26cfd3
1 changed files with 2 additions and 2 deletions
|
|
@ -100,13 +100,13 @@ pub fn macos_major_version() -> u8 {
|
|||
|
||||
#[cfg(target_os = "macos")]
|
||||
#[op]
|
||||
pub async fn macos_app_from_path(path: String) -> Result<Option<DesktopPathAction>> {
|
||||
pub async fn macos_app_from_path(path: String) -> anyhow::Result<Option<DesktopPathAction>> {
|
||||
Ok(spawn_blocking(|| macos::macos_app_from_path(&PathBuf::from(path))).await?)
|
||||
}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
#[op]
|
||||
pub async fn macos_app_from_arbitrary_path(path: String) -> Result<Option<DesktopPathAction>> {
|
||||
pub async fn macos_app_from_arbitrary_path(path: String) -> anyhow::Result<Option<DesktopPathAction>> {
|
||||
Ok(spawn_blocking(|| macos::macos_app_from_arbitrary_path(PathBuf::from(path))).await?)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue