Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_ty/src/diagnostics/decl_check.rs')
| -rw-r--r-- | crates/hir_ty/src/diagnostics/decl_check.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_ty/src/diagnostics/decl_check.rs b/crates/hir_ty/src/diagnostics/decl_check.rs index 3098198517..9e1f934034 100644 --- a/crates/hir_ty/src/diagnostics/decl_check.rs +++ b/crates/hir_ty/src/diagnostics/decl_check.rs @@ -72,7 +72,7 @@ impl fmt::Display for CaseType { CaseType::UpperCamelCase => "CamelCase", }; - write!(f, "{}", repr) + repr.fmt(f) } } @@ -103,7 +103,7 @@ impl fmt::Display for IdentType { IdentType::Variant => "Variant", }; - write!(f, "{}", repr) + repr.fmt(f) } } |