ksud: make cargo fmt happy

This commit is contained in:
weishu
2023-10-21 13:21:33 +08:00
parent 9b294682b0
commit fd03626362
3 changed files with 3 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ pub fn delete_template(id: String) -> Result<()> {
pub fn list_templates() -> Result<()> {
let templates = std::fs::read_dir(defs::PROFILE_TEMPLATE_DIR);
let Ok(templates) = templates else {
return Ok(())
return Ok(());
};
for template in templates {
let template = template?;