From e62d935829da422afc928f5d9bca59df99466253 Mon Sep 17 00:00:00 2001 From: testuser Date: Thu, 20 Feb 2025 15:18:18 +0900 Subject: [PATCH] fmt: --- src/generator.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/generator.rs b/src/generator.rs index 7a530a5..4ab08eb 100644 --- a/src/generator.rs +++ b/src/generator.rs @@ -373,7 +373,9 @@ impl CodeGen for Block { log::error!("path {}", out_path.display()); log::error!("old {}", old_out.to_string()); log::error!("new {}", out.to_string()); - return Err(CodeGenError::FilePathDuplicatedError(snake_case_name.to_string())); + return Err(CodeGenError::FilePathDuplicatedError( + snake_case_name.to_string(), + )); }; let files = self.elements.into_iter().try_fold(files, |files, e| { @@ -465,7 +467,9 @@ impl CodeGen for Register { let (out_path, _next_parent_path) = mod_file_path(parent_path, &snake_case_name); log::info!("{:?}", out_path); if files.insert(out_path, out).is_some() { - return Err(CodeGenError::FilePathDuplicatedError(snake_case_name.to_string())); + return Err(CodeGenError::FilePathDuplicatedError( + snake_case_name.to_string(), + )); } Ok(files) }