about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2024-03-04 17:07:31 +0100
committerGitHub <noreply@github.com>2024-03-04 17:07:31 +0100
commitc5c14773fd8ca410a909036b963e24baa6289867 (patch)
tree69d5ae5f6d17c04ab4afab040e05418c09e2e030
parentc0939b18b879e598b55321c604681da489f82c22 (diff)
downloadrust-c5c14773fd8ca410a909036b963e24baa6289867.tar.gz
rust-c5c14773fd8ca410a909036b963e24baa6289867.zip
Add missing header for `manual_c_str_literals`
-rw-r--r--clippy_lints/src/methods/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs
index adb696ad509..94835912328 100644
--- a/clippy_lints/src/methods/mod.rs
+++ b/clippy_lints/src/methods/mod.rs
@@ -3981,6 +3981,7 @@ declare_clippy_lint! {
 }
 
 declare_clippy_lint! {
+    /// ### What it does
     /// Checks for the manual creation of C strings (a string with a `NUL` byte at the end), either
     /// through one of the `CStr` constructor functions, or more plainly by calling `.as_ptr()`
     /// on a (byte) string literal with a hardcoded `\0` byte at the end.