Skip to content

Commit 7950590

Browse files
corvid-agentclaude
andcommitted
fix: rustfmt if-let chain formatting for CI compatibility
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 42e3f13 commit 7950590

2 files changed

Lines changed: 14 additions & 11 deletions

File tree

src/parser.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,10 @@ pub fn get_spec_symbols(body: &str) -> Vec<String> {
170170
}
171171

172172
if let Some(caps) = TABLE_ROW_RE.captures(line)
173-
&& let Some(sym) = caps.get(1) {
174-
symbols.push(sym.as_str().to_string());
175-
}
173+
&& let Some(sym) = caps.get(1)
174+
{
175+
symbols.push(sym.as_str().to_string());
176+
}
176177
}
177178
}
178179

src/validator.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ pub fn find_spec_files(dir: &Path) -> Vec<PathBuf> {
6565
let path = entry.path();
6666
if path.is_file()
6767
&& let Some(name) = path.file_name().and_then(|n| n.to_str())
68-
&& name.ends_with(".spec.md") {
69-
results.push(path.to_path_buf());
70-
}
68+
&& name.ends_with(".spec.md")
69+
{
70+
results.push(path.to_path_buf());
71+
}
7172
}
7273

7374
results.sort();
@@ -303,12 +304,13 @@ fn get_module_dirs(dir: &Path, exclude_dirs: &HashSet<String>) -> Vec<String> {
303304
if let Ok(entries) = fs::read_dir(dir) {
304305
for entry in entries.flatten() {
305306
if let Ok(ft) = entry.file_type()
306-
&& ft.is_dir() {
307-
let name = entry.file_name().to_string_lossy().to_string();
308-
if !exclude_dirs.contains(&name) {
309-
modules.push(name);
310-
}
307+
&& ft.is_dir()
308+
{
309+
let name = entry.file_name().to_string_lossy().to_string();
310+
if !exclude_dirs.contains(&name) {
311+
modules.push(name);
311312
}
313+
}
312314
}
313315
}
314316

0 commit comments

Comments
 (0)