diff --git a/tags/src/lib.rs b/tags/src/lib.rs index e6179b8b..dd74f833 100644 --- a/tags/src/lib.rs +++ b/tags/src/lib.rs @@ -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) } }