about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIcxolu <10486322+Icxolu@users.noreply.github.com>2023-04-29 21:11:34 +0200
committerGitHub <noreply@github.com>2023-04-29 21:11:34 +0200
commit032bc11fd482cc99fd3f85f053855b3e3e6ad18a (patch)
treea7c3115f0857ac6bdb2fee2a36823ae8b68d054e
parent9428138562bad89fc2d7d011fe276cd198e6155a (diff)
downloadrust-032bc11fd482cc99fd3f85f053855b3e3e6ad18a.tar.gz
rust-032bc11fd482cc99fd3f85f053855b3e3e6ad18a.zip
fix diagnostic message style
Co-authored-by: Ruby Lazuli <general@patchmixolydic.com>
-rw-r--r--clippy_lints/src/default_constructed_unit_struct.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/default_constructed_unit_struct.rs b/clippy_lints/src/default_constructed_unit_struct.rs
index a04f7b9d9a9..d518c8e7c56 100644
--- a/clippy_lints/src/default_constructed_unit_struct.rs
+++ b/clippy_lints/src/default_constructed_unit_struct.rs
@@ -55,7 +55,7 @@ impl LateLintPass<'_> for DefaultConstructedUnitStruct {
                     cx,
                     DEFAULT_CONSTRUCTED_UNIT_STRUCT,
                     qpath.last_segment_span(),
-                    "Use of `default` to create a unit struct.",
+                    "use of `default` to create a unit struct",
                     "remove this call to `default`",
                     String::new(),
                     Applicability::MachineApplicable,