Defer to debug formatting take 2

This commit is contained in:
Timothy Clem 2020-06-17 10:35:07 -07:00
parent 929bb40adc
commit c08333e0cd

View file

@ -483,7 +483,7 @@ impl NamedCapture {
impl fmt::Display for SyntaxType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{:?}", self)
format!("{:?}", self).fmt(f)
}
}