Skip to content

Commit d2827d8

Browse files
0xLeifclaude
andcommitted
style: apply rustfmt formatting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a60ee69 commit d2827d8

2 files changed

Lines changed: 22 additions & 7 deletions

File tree

src/generator.rs

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,16 +271,26 @@ pub fn generate_specs_for_unspecced_modules(
271271
eprintln!(" Generating {rel} with AI...");
272272
}
273273

274-
let spec_content =
275-
generate_module_spec(module_name, &module_files, root, &specs_dir, config, ai_command);
274+
let spec_content = generate_module_spec(
275+
module_name,
276+
&module_files,
277+
root,
278+
&specs_dir,
279+
config,
280+
ai_command,
281+
);
276282

277283
match fs::write(&spec_file, &spec_content) {
278284
Ok(_) => {
279285
let rel = spec_file.strip_prefix(root).unwrap_or(&spec_file).display();
280286
if ai_command.is_some() {
281287
// AI generation complete
282288
}
283-
println!(" {} Generated {rel} ({} files)", "✓".green(), module_files.len());
289+
println!(
290+
" {} Generated {rel} ({} files)",
291+
"✓".green(),
292+
module_files.len()
293+
);
284294
let _ = std::io::stdout().flush();
285295
generated += 1;
286296
}
@@ -321,8 +331,14 @@ pub fn generate_specs_for_unspecced_modules_paths(
321331
continue;
322332
}
323333

324-
let spec_content =
325-
generate_module_spec(module_name, &module_files, root, &specs_dir, config, ai_command);
334+
let spec_content = generate_module_spec(
335+
module_name,
336+
&module_files,
337+
root,
338+
&specs_dir,
339+
config,
340+
ai_command,
341+
);
326342

327343
if fs::write(&spec_file, &spec_content).is_ok() {
328344
let rel = spec_file

src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ fn cmd_generate(root: &Path, strict: bool, require_coverage: Option<usize>, json
212212
println!("No existing specs found. Scanning for source modules...");
213213
(0, 0, 0, 0)
214214
} else {
215-
let (te, tw, p, t, _, _) =
216-
run_validation(root, &spec_files, &schema_tables, &config, json);
215+
let (te, tw, p, t, _, _) = run_validation(root, &spec_files, &schema_tables, &config, json);
217216
(te, tw, p, t)
218217
};
219218

0 commit comments

Comments
 (0)