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 34028f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bindgen-tests/tests/expectations/tests/strings_cstr.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 34028f9

Please sign in to comment.