From e5847b4b1ab6ae61ab80c46235698d33056db391 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 17:22:17 +0000 Subject: [PATCH] style(clippy): use ? operator instead of match in find_git_root Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/compile/common.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compile/common.rs b/src/compile/common.rs index 7737d757..8d8e7d5c 100644 --- a/src/compile/common.rs +++ b/src/compile/common.rs @@ -1730,9 +1730,9 @@ fn find_git_root(path: &std::path::Path) -> Option { if current.join(".git").exists() { return Some(current); } - match current.parent() { - Some(parent) => current = parent.to_path_buf(), - None => return None, + { + let parent = current.parent()?; + current = parent.to_path_buf() } } }