Skip to content

Commit e6037e6

Browse files
joshwilhelmiclaude
andcommitted
[gobby-cli-#123] fix(gcode): Use match guard for clippy 1.95 collapsible_match
crates/gcode/src/commands/init.rs:34 trips clippy::collapsible_match on a nested `match Err(e) => { if !quiet { ... } }`. Convert to a match guard `Err(e) if !quiet => { ... }`; the `_ => {}` arm catches the quiet=true case as before, so behavior is preserved. Updated local toolchain to 1.95 (was 1.94) so all 1.95 lints fire locally going forward. Verified all five CI clippy commands pass on 1.95: gobby-core, gobby-hooks, gobby-squeeze, gobby-local, gobby-code (no embeddings). Rolls into unreleased gcode 0.6.0 -- no version bump. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 211edb2 commit e6037e6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

crates/gcode/src/commands/init.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ pub fn run(project_root: &Path, format: Format, quiet: bool) -> anyhow::Result<(
3030
}
3131
installed_skills.push(cli.name.to_string());
3232
}
33-
Err(e) => {
34-
if !quiet {
35-
eprintln!("Warning: failed to install skill for {}: {}", cli.name, e);
36-
}
33+
Err(e) if !quiet => {
34+
eprintln!("Warning: failed to install skill for {}: {}", cli.name, e);
3735
}
3836
_ => {}
3937
}

0 commit comments

Comments
 (0)