Skip to content

Commit

Permalink
Allow many lines for narrow
Browse files Browse the repository at this point in the history
  • Loading branch information
akoshelev committed May 19, 2024
1 parent 28266d2 commit f1d5dcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ipa-step/src/gate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ fn build_narrows(
let short_name = t.rsplit_once("::").map_or_else(|| t.as_ref(), |(_a, b)| b);
let msg = format!("unexpected narrow for {gate_name}({{s}}) => {short_name}({{ss}})");
syntax.extend(quote! {
#[allow(clippy::too_many_lines)]
impl ::ipa_step::StepNarrow<#ty> for #ident {
fn narrow(&self, step: &#ty) -> Self {
match self.0 {
Expand Down

0 comments on commit f1d5dcb

Please sign in to comment.