From 86f96625a6523c4d400f91d2d32473288c6c005d Mon Sep 17 00:00:00 2001 From: Owen Law Date: Fri, 17 May 2024 22:18:43 -0400 Subject: [PATCH] Fix mac build (didn't change to P: AsRef) --- crates/cli/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 90a783e3c0feb1..4ea277990baef7 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -336,7 +336,7 @@ mod windows { } impl Detect { - pub fn detect(_path: Option<&Path>) -> anyhow::Result { + pub fn detect>(_path: Option

) -> anyhow::Result { Ok(App) } } @@ -393,9 +393,10 @@ mod mac_os { } impl Detect { - pub fn detect(path: Option<&Path>) -> anyhow::Result { + pub fn detect>(path: Option

) -> anyhow::Result { let bundle_path = if let Some(bundle_path) = path { bundle_path + .as_ref() .canonicalize() .with_context(|| format!("Args bundle path {bundle_path:?} canonicalization"))? } else {