fmt: format code according to rustfmt standards

This commit is contained in:
XiaoYang
2026-03-10 21:45:04 +08:00
parent 2f452ab925
commit 8ec2ef6ad3
2 changed files with 13 additions and 2 deletions
+4
View File
@@ -17,3 +17,7 @@ docs/MODEL_DEVELOPMENT_GUIDE.md
bak bak
.gitignore .gitignore
demos
benchmarks
+9 -2
View File
@@ -254,13 +254,20 @@ fn run_list(args: ListArgs) -> anyhow::Result<()> {
// Table output (default) // Table output (default)
println!("Available models:"); println!("Available models:");
println!(); println!();
println!("{:<30} {:<40} {:<10}", "Model Name", "ModelScope ID", "Download"); println!(
"{:<30} {:<40} {:<10}",
"Model Name", "ModelScope ID", "Download"
);
println!("{}", "-".repeat(80)); println!("{}", "-".repeat(80));
for model in models { for model in models {
let possible_value = model.to_possible_value().unwrap(); let possible_value = model.to_possible_value().unwrap();
let name = possible_value.get_name(); let name = possible_value.get_name();
let id = model.model_id(); let id = model.model_id();
let download_status = if is_model_downloaded(model) { "" } else { "" }; let download_status = if is_model_downloaded(model) {
""
} else {
""
};
println!("{:<30} {:<40} {:<10}", name, id, download_status); println!("{:<30} {:<40} {:<10}", name, id, download_status);
} }
} }