From 41b1e672eb9e0caa2071e82a01897a47e3d9a9f7 Mon Sep 17 00:00:00 2001 From: konstin Date: Fri, 25 Aug 2023 00:01:40 +0200 Subject: [PATCH] Clippy --- crates/ruff/src/jupyter/notebook.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ruff/src/jupyter/notebook.rs b/crates/ruff/src/jupyter/notebook.rs index 75025fc37d2670..4528883a9711fc 100644 --- a/crates/ruff/src/jupyter/notebook.rs +++ b/crates/ruff/src/jupyter/notebook.rs @@ -275,7 +275,7 @@ impl Notebook { }; if id.is_none() { // https://github.com/jupyter/enhancement-proposals/blob/master/62-cell-id/cell-id.md#questions - *id = Some(Uuid::new_v4().to_string()) + *id = Some(Uuid::new_v4().to_string()); } } } @@ -689,7 +689,7 @@ print("after empty cells") let source_kind = SourceKind::Jupyter(source_notebook); let (_, transformed) = test_contents( &source_kind, - path.as_ref(), + path, &settings::Settings::for_rule(Rule::UnusedImport), ); let linted_notebook = transformed.into_owned().expect_jupyter();