Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyTitu committed Dec 30, 2024
1 parent 38ff4a2 commit f2c2b73
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/src/language/go.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,14 @@ impl Language for Go {
"type {}{} struct {{",
self.acronyms_to_uppercase(&rs.id.renamed),
(!rs.generic_types.is_empty())
.then(|| format!("[{}]", rs.generic_types.iter().map(|ty| format!("{} any", ty)).collect::<Vec<String>>().join(", ")))
.then(|| format!(
"[{}]",
rs.generic_types
.iter()
.map(|ty| format!("{} any", ty))
.collect::<Vec<String>>()
.join(", ")
))
.unwrap_or_default()
)?;

Expand Down

0 comments on commit f2c2b73

Please sign in to comment.