mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Use write! more
This commit is contained in:
parent
d8051566e9
commit
a699a3ec1d
1 changed files with 5 additions and 5 deletions
10
src/types.rs
10
src/types.rs
|
@ -50,7 +50,7 @@ impl fmt::Debug for Type {
|
|||
arg.fmt(f)?;
|
||||
}
|
||||
|
||||
" -> ".fmt(f)?;
|
||||
write!(f, " -> ")?;
|
||||
|
||||
ret.fmt(f)
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ impl fmt::Debug for Type {
|
|||
name,
|
||||
args,
|
||||
} => {
|
||||
write!(f, "{}", "(")?;
|
||||
write!(f, "(")?;
|
||||
|
||||
if !module_name.is_empty() {
|
||||
write!(f, "{}.", module_name)?;
|
||||
|
@ -73,14 +73,14 @@ impl fmt::Debug for Type {
|
|||
write!(f, " {:?}", arg)?;
|
||||
}
|
||||
|
||||
write!(f, "{}", ")")
|
||||
write!(f, ")")
|
||||
}
|
||||
Type::Erroneous(problem) => {
|
||||
"Erroneous(".fmt(f)?;
|
||||
write!(f, "Erroneous(")?;
|
||||
|
||||
problem.fmt(f)?;
|
||||
|
||||
")".fmt(f)
|
||||
write!(f, ")")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue