mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
fix(tui/branch finalize): remove ref binding modifiers for Rust 2024 pattern ergonomics
This commit is contained in:
@@ -8076,7 +8076,7 @@ impl ChatWidget<'_> {
|
||||
} else if let Some(rest) = line.strip_prefix("branch ") {
|
||||
cur_branch = Some(rest.trim().to_string());
|
||||
}
|
||||
if let (Some(ref p), Some(ref b)) = (&cur_path, &cur_branch) {
|
||||
if let (Some(p), Some(b)) = (&cur_path, &cur_branch) {
|
||||
if b.trim() == format!("refs/heads/{}", default_branch) && PathBuf::from(p) != git_root {
|
||||
worktree_hint = Some(p.clone());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user