Add missing header for manual_c_str_literals

This commit is contained in:
Lukas Wirth 2024-03-04 17:07:31 +01:00 committed by GitHub
parent c0939b18b8
commit c5c14773fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3981,6 +3981,7 @@
}
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.