Skip to content

Commit

Permalink
Fix formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Apr 24, 2024
1 parent 0348682 commit 5ddbc02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl FormatNodeRule<TypeParamParamSpec> for FormatTypeParamParamSpec {
} = item;
write!(f, [token("**"), name.format()])?;
if let Some(default_value) = default_value {
write!(f, [token("="), space(), default_value.format()])?;
write!(f, [space(), token("="), space(), default_value.format()])?;
}
Ok(())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl FormatNodeRule<TypeParamTypeVar> for FormatTypeParamTypeVar {
write!(f, [token(":"), space(), bound.format()])?;
}
if let Some(default_value) = default_value {
write!(f, [token("="), space(), default_value.format()])?;
write!(f, [space(), token("="), space(), default_value.format()])?;
}
Ok(())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl FormatNodeRule<TypeParamTypeVarTuple> for FormatTypeParamTypeVarTuple {
} = item;
write!(f, [token("*"), name.format()])?;
if let Some(default_value) = default_value {
write!(f, [token("="), space(), default_value.format()])?;
write!(f, [space(), token("="), space(), default_value.format()])?;
}
Ok(())
}
Expand Down

0 comments on commit 5ddbc02

Please sign in to comment.