refactor(transformer/optional-catch-binding): remove inactive #[allow(clippy::unused_self)] attr (#7158)

This commit is contained in:
overlookmotel 2024-11-06 12:02:09 +00:00
parent 8c0a362b8b
commit 1dfd241125

View file

@ -48,7 +48,6 @@ impl OptionalCatchBinding {
impl<'a> Traverse<'a> for OptionalCatchBinding {
/// If CatchClause has no param, add a parameter called `unused`.
#[allow(clippy::unused_self)]
fn enter_catch_clause(&mut self, clause: &mut CatchClause<'a>, ctx: &mut TraverseCtx<'a>) {
if clause.param.is_some() {
return;