refactor(transformer/async-generator-function): remove inactive #[allow(clippy::unused_self)] attrs (#7167)

Follow-on after stack up to #7148. Remove 2 x `#[allow(clippy::unused_self)]` attrs where that lint isn't triggered because the functions do use their `&self` param.
This commit is contained in:
overlookmotel 2024-11-06 14:08:11 +00:00
parent b57d5a5277
commit 1238506980

View file

@ -177,7 +177,6 @@ impl<'a, 'ctx> AsyncGeneratorFunctions<'a, 'ctx> {
}
/// Transform `yield * argument` expression to `yield asyncGeneratorDelegate(asyncIterator(argument))`.
#[allow(clippy::unused_self)]
fn transform_yield_expression(
&self,
expr: &mut YieldExpression<'a>,
@ -199,7 +198,6 @@ impl<'a, 'ctx> AsyncGeneratorFunctions<'a, 'ctx> {
/// Transforms `await expr` expression to `yield awaitAsyncGenerator(expr)`.
/// Ignores top-level await expression.
#[allow(clippy::unused_self)]
fn transform_await_expression(
&self,
expr: &mut AwaitExpression<'a>,