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) }