Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Apr 9, 2024
1 parent 403a961 commit ffcaeec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions frb_codegen/src/library/codegen/ir/ty/delegate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,10 @@ impl IrTypeTrait for IrTypeDelegate {
) {
self.get_delegate().visit_types(f, ir_context);

// TODO avoid this hack
// extras
// if let Self::TimeList(ir) = self {
// IrType::Delegate(IrTypeDelegate::Time(*ir)).visit_types(f, ir_context);
// }
#[allow(clippy::single_match)]
match self {
Self::StreamSink(ir) => ir.inner.visit_types(f, ir_context),
// ... others
_ => {}
}
}
Expand Down
2 changes: 2 additions & 0 deletions frb_codegen/src/library/codegen/parser/function_parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ impl<'a, 'b> FunctionParser<'a, 'b> {
Self { type_parser }
}

#[allow(clippy::too_many_arguments)]
pub(crate) fn parse_function(
&mut self,
func: &GeneralizedItemFn,
Expand All @@ -55,6 +56,7 @@ impl<'a, 'b> FunctionParser<'a, 'b> {
.with_context(|| format!("function={:?}", func.sig().ident))
}

#[allow(clippy::too_many_arguments)]
fn parse_function_inner(
&mut self,
func: &GeneralizedItemFn,
Expand Down

0 comments on commit ffcaeec

Please sign in to comment.