Skip to content

Commit 9a6d343

Browse files
committed
sketch-utils/opener: fix mac open
1 parent 0b04827 commit 9a6d343

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sketch-utils/src/opener.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ pub enum OpenError {
1313
#[cfg(target_os = "linux")]
1414
const OPENER: &str = "xdg-open";
1515

16-
#[cfg(target_os = "darwin")]
16+
#[cfg(target_os = "macos")]
1717
const OPENER: &str = "open";
1818

19-
#[cfg(any(target_os = "linux", target_os = "darwin"))]
19+
#[cfg(any(target_os = "linux", target_os = "macos"))]
2020
pub fn open(path: impl AsRef<OsStr>) -> Result<()> {
2121
let exit = Command::new(OPENER).arg(path.as_ref()).spawn()?.wait()?;
2222

0 commit comments

Comments
 (0)