Skip to content

Commit 1faf722

Browse files
alankyshumclaude
andcommitted
chore: release v0.9.0 — clippy fixes and version bump
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2ffef8a commit 1faf722

File tree

6 files changed

+11
-23
lines changed

6 files changed

+11
-23
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "semantic-diff"
3-
version = "0.8.0"
3+
version = "0.9.0"
44
edition = "2021"
55
description = "A terminal diff viewer with AI-powered semantic grouping (Claude CLI / Copilot)"
66
license = "MIT"

src/grouper/llm.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -231,19 +231,6 @@ async fn request_incremental(
231231
Ok(validated_groups)
232232
}
233233

234-
/// Invoke the detected LLM backend with a raw prompt and return the text response.
235-
/// Uses JSON output format (for structured responses like grouping).
236-
pub async fn invoke_llm(
237-
backend: LlmBackend,
238-
model: &str,
239-
prompt: &str,
240-
) -> anyhow::Result<String> {
241-
match backend {
242-
LlmBackend::Claude => invoke_claude(prompt, model).await,
243-
LlmBackend::Copilot => invoke_copilot(prompt, model).await,
244-
}
245-
}
246-
247234
/// Invoke the LLM backend with text output format (for free-form markdown responses).
248235
/// For Claude, uses `--output-format text` instead of JSON to avoid the wrapper.
249236
pub async fn invoke_llm_text(

src/preview/markdown.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -502,16 +502,14 @@ fn render_table(rows: &[Vec<String>], pane_width: u16) -> Vec<Line<'static>> {
502502

503503
// Separator after each row (except the last, which gets the bottom border)
504504
if ri < rows.len() - 1 {
505-
let joiner = if is_header { "┼" } else { "┼" };
506505
let dash = if is_header { "─" } else { "┄" };
507-
let (left, right) = if is_header { ("├", "┤") } else { ("├", "┤") };
508506
let sep: String = col_widths
509507
.iter()
510508
.map(|w| dash.repeat(w + 2))
511509
.collect::<Vec<_>>()
512-
.join(joiner);
510+
.join("┼");
513511
lines.push(Line::from(Span::styled(
514-
format!(" {left}{sep}{right}"),
512+
format!(" ├{sep}"),
515513
border_style,
516514
)));
517515
}

src/review/llm.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,7 @@ fn build_section_prompt(section: ReviewSection, shared_context: &str, review_sou
7070
ReviewSection::Verdict => {
7171
let skill_preamble = match review_source {
7272
ReviewSource::Skill { path, .. } => {
73-
match std::fs::read_to_string(path) {
74-
Ok(content) => content,
75-
Err(_) => String::new(),
76-
}
73+
std::fs::read_to_string(path).unwrap_or_default()
7774
}
7875
ReviewSource::BuiltIn => String::new(),
7976
};

src/review/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ pub struct ReviewCache {
6868
order: VecDeque<u64>,
6969
}
7070

71+
impl Default for ReviewCache {
72+
fn default() -> Self {
73+
Self::new()
74+
}
75+
}
76+
7177
impl ReviewCache {
7278
pub fn new() -> Self {
7379
Self {

0 commit comments

Comments
 (0)