Skip to content

Commit dc36b5e

Browse files
committed
Format Rust sources
1 parent 4615b3f commit dc36b5e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/core/smart_review_prompt.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,8 @@ TAGS: [comma-separated relevant tags]
105105
prompt.push_str("## Context Information\n\n");
106106
for chunk in context_chunks {
107107
let (start_line, end_line) = chunk.line_range.unwrap_or((1, 1));
108-
let description = format!(
109-
"{} - {:?}",
110-
chunk.file_path.display(),
111-
chunk.context_type
112-
);
108+
let description =
109+
format!("{} - {:?}", chunk.file_path.display(), chunk.context_type);
113110
let block = format!(
114111
"**{}** (lines {}-{}):\n```\n{}\n```\n\n",
115112
description,

src/core/symbol_index.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,11 @@ fn extract_range(value: Option<&Value>) -> Option<(usize, usize)> {
921921
fn path_to_uri(path: &Path) -> Result<String> {
922922
let absolute = path.canonicalize()?;
923923
let path_str = absolute.to_string_lossy().replace('\\', "/");
924-
let encoded = path_str.split('/').map(url_encode).collect::<Vec<_>>().join("/");
924+
let encoded = path_str
925+
.split('/')
926+
.map(url_encode)
927+
.collect::<Vec<_>>()
928+
.join("/");
925929
Ok(format!("file://{}", encoded))
926930
}
927931

0 commit comments

Comments
 (0)