Skip to content

Commit c5c1477

Browse files
authored
Add missing header for manual_c_str_literals
1 parent c0939b1 commit c5c1477

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
@@ -3981,6 +3981,7 @@ declare_clippy_lint! {
39813981
}
39823982

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

0 commit comments

Comments
 (0)