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 c0939b1 commit c5c1477Copy full SHA for c5c1477
clippy_lints/src/methods/mod.rs
@@ -3981,6 +3981,7 @@ declare_clippy_lint! {
3981
}
3982
3983
declare_clippy_lint! {
3984
+ /// ### What it does
3985
/// Checks for the manual creation of C strings (a string with a `NUL` byte at the end), either
3986
/// through one of the `CStr` constructor functions, or more plainly by calling `.as_ptr()`
3987
/// on a (byte) string literal with a hardcoded `\0` byte at the end.
0 commit comments