Skip to content

Commit a710e73

Browse files
committed
fix(linter): fix clippy
1 parent 7a62d4b commit a710e73

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

crates/oxc_linter/src/rules/jest/no_identical_title.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl Rule for NoIdenticalTitle {
8181
let mut kind_and_spans = kind_and_span
8282
.iter()
8383
.filter_map(|(kind, span)| {
84-
let Some(parent) = span_to_parent_mapping.get(span) else { return None };
84+
let parent = span_to_parent_mapping.get(span)?;
8585
Some((*span, *kind, *parent))
8686
})
8787
.collect::<Vec<(Span, JestFnKind, AstNodeId)>>();
@@ -273,7 +273,7 @@ fn test() {
273273
"
274274
describe('foo', () => {
275275
it('works', () => {});
276-
276+
277277
describe('foe', () => {
278278
it('works', () => {});
279279
});
@@ -287,7 +287,7 @@ fn test() {
287287
describe('foe', () => {
288288
it('works', () => {});
289289
});
290-
290+
291291
it('works', () => {});
292292
});
293293
",
@@ -299,7 +299,7 @@ fn test() {
299299
describe('foo', () => {
300300
describe('foe', () => {});
301301
});
302-
302+
303303
describe('foe', () => {});
304304
",
305305
None,
@@ -313,7 +313,7 @@ fn test() {
313313
describe('a class named ' + myClass.name, () => {
314314
describe('#myMethod', () => {});
315315
});
316-
316+
317317
describe('something else', () => {});
318318
",
319319
None,
@@ -349,7 +349,7 @@ fn test() {
349349
description
350350
${'b'}
351351
`('$description', () => {});
352-
352+
353353
describe.each`
354354
description
355355
${'a'}
@@ -363,7 +363,7 @@ fn test() {
363363
describe.each``('nested each', () => {
364364
describe.each``('nested nested each', () => {});
365365
});
366-
366+
367367
describe('nested', () => {});
368368
});
369369
",

0 commit comments

Comments
 (0)