Skip to content

Commit 547ad39

Browse files
committed
Add missing header for manual_c_str_literals
1 parent 51c89a4 commit 547ad39

File tree

1 file changed

+1
-0
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-0
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3979,6 +3979,7 @@ declare_clippy_lint! {
39793979
}
39803980

39813981
declare_clippy_lint! {
3982+
/// ### What it does
39823983
/// Checks for the manual creation of C strings (a string with a `NUL` byte at the end), either
39833984
/// through one of the `CStr` constructor functions, or more plainly by calling `.as_ptr()`
39843985
/// on a (byte) string literal with a hardcoded `\0` byte at the end.

0 commit comments

Comments
 (0)