Skip to content

Commit 928ffc1

Browse files
committed
Fix clippy warnings
1 parent 1e94d24 commit 928ffc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ruff/src/linter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ pub fn lint_only(
327327
noqa: flags::Noqa,
328328
source_kind: Option<&SourceKind>,
329329
) -> LinterResult<(Vec<Message>, Option<ImportMap>)> {
330-
let mode = if source_kind.map_or(false, |source_kind| source_kind.is_jupyter()) {
330+
let mode = if source_kind.map_or(false, SourceKind::is_jupyter) {
331331
Mode::Jupyter
332332
} else {
333333
Mode::Module

0 commit comments

Comments
 (0)