Skip to content

Commit 4ae5543

Browse files
hanbu97claude
andcommitted
fix: resolve clippy warnings (type_complexity, needless_borrow, doc_lazy_continuation)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9d92df9 commit 4ae5543

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/pipeline.rs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,6 +1712,7 @@ async fn run_blocks_live(
17121712
#[allow(unused_assignments)]
17131713
let mut last_data_refresh = Instant::now();
17141714
let mut first_real_frame_done = false;
1715+
#[allow(clippy::type_complexity)]
17151716
let mut pending_official_task: Option<
17161717
tokio::task::JoinHandle<(
17171718
Option<OfficialCodexSnapshot>,
@@ -2611,7 +2612,7 @@ fn render_live_overview_body(
26112612
TuiColor::Red
26122613
};
26132614
lines.push(live_key_value_line(
2614-
&format!(" {}", model.label),
2615+
format!(" {}", model.label),
26152616
format!("{remaining:.0}% left"),
26162617
color,
26172618
));
@@ -5122,15 +5123,16 @@ fn resolve_claude_binary() -> Result<String> {
51225123
}
51235124
}
51245125
// Well-known paths.
5125-
for candidate in &[
5126+
for p in [
51265127
dirs::home_dir().map(|h| h.join(".bun/bin/claude")),
51275128
dirs::home_dir().map(|h| h.join(".npm-global/bin/claude")),
51285129
Some(PathBuf::from("/usr/local/bin/claude")),
5129-
] {
5130-
if let Some(p) = candidate {
5131-
if p.is_file() {
5132-
return Ok(p.to_string_lossy().into_owned());
5133-
}
5130+
]
5131+
.into_iter()
5132+
.flatten()
5133+
{
5134+
if p.is_file() {
5135+
return Ok(p.to_string_lossy().into_owned());
51345136
}
51355137
}
51365138
bail!("Claude CLI binary not found. Install it or set CLAUDE_BIN env var.")
@@ -6406,7 +6408,8 @@ fn build_antigravity_snapshot(
64066408
}
64076409

64086410
/// Select and prioritise models the same way CodexBar does:
6409-
/// 1. Claude (non-thinking) 2. Gemini Pro Low 3. Gemini Flash
6411+
/// 1. Claude (non-thinking) 2. Gemini Pro Low 3. Gemini Flash.
6412+
///
64106413
/// Fallback: all models sorted by remaining % ascending.
64116414
fn select_antigravity_models(
64126415
models: &[AntigravityModelQuotaSnapshot],

0 commit comments

Comments
 (0)