Skip to content

Commit a8c5896

Browse files
committed
Allow clippy::manual_c_str_literals
See rust-lang#2994
1 parent 3300618 commit a8c5896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindgen/codegen/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ impl CodeGenerator for Var {
737737
{
738738
result.push(quote! {
739739
#(#attrs)*
740-
#[allow(unsafe_code)]
740+
#[allow(unsafe_code, clippy::manual_c_str_literals)]
741741
pub const #canonical_ident: &#cstr_ty = unsafe {
742742
#cstr_ty::from_bytes_with_nul_unchecked(#bytes)
743743
};

0 commit comments

Comments
 (0)