aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/diagnostics.rs
diff options
context:
space:
mode:
authorIgor Aleksanov <[email protected]>2020-10-03 12:47:46 +0100
committerIgor Aleksanov <[email protected]>2020-10-12 08:59:54 +0100
commit329626124f360feadb47e83be5690861c62a4b70 (patch)
tree56a1f8e3b351ae739b4c3c373ebd93ba81c18dc4 /crates/hir_ty/src/diagnostics.rs
parent1773c6d154abe5da00b31bb16139addcaa443bbb (diff)
Add check for structure names to be CamelCase
Diffstat (limited to 'crates/hir_ty/src/diagnostics.rs')
-rw-r--r--crates/hir_ty/src/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/diagnostics.rs b/crates/hir_ty/src/diagnostics.rs
index 24fff690a..bd370e3b2 100644
--- a/crates/hir_ty/src/diagnostics.rs
+++ b/crates/hir_ty/src/diagnostics.rs
@@ -257,7 +257,7 @@ impl fmt::Display for CaseType {
257 let repr = match self { 257 let repr = match self {
258 CaseType::LowerSnakeCase => "snake_case", 258 CaseType::LowerSnakeCase => "snake_case",
259 CaseType::UpperSnakeCase => "UPPER_SNAKE_CASE", 259 CaseType::UpperSnakeCase => "UPPER_SNAKE_CASE",
260 CaseType::UpperCamelCase => "UpperCamelCase", 260 CaseType::UpperCamelCase => "CamelCase",
261 }; 261 };
262 262
263 write!(f, "{}", repr) 263 write!(f, "{}", repr)