Skip to content

Commit

Permalink
suppress clippy warning from macro generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Nak committed Sep 11, 2024
1 parent 9d5d3e9 commit 5e82248
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Empty file removed crates/ir/src/inst/access.rs
Empty file.
1 change: 0 additions & 1 deletion crates/ir/src/inst/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pub mod access;
pub mod arith;
pub mod cast;
pub mod cmp;
Expand Down
1 change: 1 addition & 0 deletions crates/macros/src/inst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ impl InstStruct {

let field_names = self.fields.iter().map(|f| &f.ident);
quote! {
#[allow(clippy::too_many_arguments)]
pub fn new(hi: &dyn crate::HasInst<Self>, #(#ctor_args),*) -> Self {
Self {
#(#field_names: #field_names),*
Expand Down

0 comments on commit 5e82248

Please sign in to comment.