From e8ecafa6545469ea8884547ddeabc2d93a64886f 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 1af3f347539a7..f36ce19171f34 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::IpyNotebook(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_ipy_notebook();