From b946d075d12a78e12a5d1a43debfd425ef34419f Mon Sep 17 00:00:00 2001 From: Jan Schweizer Date: Sat, 2 Dec 2023 13:29:00 +0100 Subject: [PATCH] Happify linter --- crates/deltalake-core/src/operations/vacuum.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/deltalake-core/src/operations/vacuum.rs b/crates/deltalake-core/src/operations/vacuum.rs index 27408fe48c..93ad44f153 100644 --- a/crates/deltalake-core/src/operations/vacuum.rs +++ b/crates/deltalake-core/src/operations/vacuum.rs @@ -219,7 +219,7 @@ impl VacuumBuilder { if let Ok(parent) = &Url::parse(&format!("file://{}", self.log_store.root_uri().as_str())) { - if let Ok(dv_absolute_path) = deletion_vector.absolute_path(&parent) { + if let Ok(dv_absolute_path) = deletion_vector.absolute_path(parent) { Some(dv_absolute_path?.path().to_string()) } else { None @@ -307,7 +307,7 @@ impl std::future::IntoFuture for VacuumBuilder { fn is_absolute_path(path: &str) -> bool { let path = std::path::Path::new(path); - return path.is_absolute(); + path.is_absolute() } /// Encapsulate which files are to be deleted and the parameters used to make that decision