We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
manual_c_str_literals
1 parent 51c89a4 commit 547ad39Copy full SHA for 547ad39
clippy_lints/src/methods/mod.rs
@@ -3979,6 +3979,7 @@ declare_clippy_lint! {
3979
}
3980
3981
declare_clippy_lint! {
3982
+ /// ### What it does
3983
/// Checks for the manual creation of C strings (a string with a `NUL` byte at the end), either
3984
/// through one of the `CStr` constructor functions, or more plainly by calling `.as_ptr()`
3985
/// on a (byte) string literal with a hardcoded `\0` byte at the end.
0 commit comments