Skip to content

Commit

Permalink
Allow clippy::manual_c_str_literals
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Nov 28, 2024
1 parent 3300618 commit a8c5896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindgen/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ impl CodeGenerator for Var {
{
result.push(quote! {
#(#attrs)*
#[allow(unsafe_code)]
#[allow(unsafe_code, clippy::manual_c_str_literals)]
pub const #canonical_ident: &#cstr_ty = unsafe {
#cstr_ty::from_bytes_with_nul_unchecked(#bytes)
};
Expand Down

0 comments on commit a8c5896

Please sign in to comment.