Skip to content

Commit 628261e

Browse files
CopilotByron
andcommitted
Format code with cargo fmt
Co-authored-by: Byron <63622+Byron@users.noreply.github.com>
1 parent 3395b25 commit 628261e

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

crates/but/src/forge/review.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub async fn publish_reviews(
6161
let app_settings = AppSettings::load_from_default_path_creating()?;
6262
let ctx = &mut CommandContext::open(project, app_settings)?;
6363
let branch_name = resolve_branch_name(ctx, branch_input)?;
64-
64+
6565
handle_specific_branch_publish(
6666
project,
6767
&branch_name,
@@ -536,20 +536,17 @@ pub fn get_review_numbers(
536536
}
537537

538538
/// Resolve a branch input string (which can be a CliId or branch name) to an actual branch name
539-
fn resolve_branch_name(
540-
ctx: &mut CommandContext,
541-
branch_input: &str,
542-
) -> anyhow::Result<String> {
539+
fn resolve_branch_name(ctx: &mut CommandContext, branch_input: &str) -> anyhow::Result<String> {
543540
// Try to resolve as a CliId first
544541
let cli_ids = crate::id::CliId::from_str(ctx, branch_input)?;
545-
542+
546543
if cli_ids.is_empty() {
547544
anyhow::bail!(
548545
"Branch '{}' not found. If you just performed a Git operation (squash, rebase, etc.), try running 'but status' to refresh the current state.",
549546
branch_input
550547
);
551548
}
552-
549+
553550
if cli_ids.len() > 1 {
554551
let matches: Vec<String> = cli_ids
555552
.iter()
@@ -564,7 +561,7 @@ fn resolve_branch_name(
564561
matches.join(", ")
565562
);
566563
}
567-
564+
568565
// Extract branch name from the resolved CliId
569566
match &cli_ids[0] {
570567
crate::id::CliId::Branch { name } => Ok(name.clone()),

0 commit comments

Comments
 (0)