diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2024-03-04 17:07:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-04 17:07:31 +0100 |
| commit | c5c14773fd8ca410a909036b963e24baa6289867 (patch) | |
| tree | 69d5ae5f6d17c04ab4afab040e05418c09e2e030 | |
| parent | c0939b18b879e598b55321c604681da489f82c22 (diff) | |
| download | rust-c5c14773fd8ca410a909036b963e24baa6289867.tar.gz rust-c5c14773fd8ca410a909036b963e24baa6289867.zip | |
Add missing header for `manual_c_str_literals`
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 1 |
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. |
