From a54b2d7c8cbe2c67137b281e99ecaef7caf22e16 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Fri, 9 Feb 2024 03:59:31 -0500 Subject: [PATCH] minor linting --- justfile | 2 +- martin/src/pg/builder.rs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/justfile b/justfile index 0a30903ea..5d10ea7b5 100644 --- a/justfile +++ b/justfile @@ -313,7 +313,7 @@ check-doc: # Run cargo clippy clippy: - cargo clippy --workspace --all-targets --bins --tests --lib --benches -- -D warnings + cargo clippy --workspace --all-targets --bins --tests --lib --benches --examples -- -D warnings # Validate markdown URLs with markdown-link-check clippy-md: diff --git a/martin/src/pg/builder.rs b/martin/src/pg/builder.rs index 09a9fca69..4b88f2f93 100644 --- a/martin/src/pg/builder.rs +++ b/martin/src/pg/builder.rs @@ -157,8 +157,7 @@ impl PgBuilder { if let Some(auto_tables) = &self.auto_tables { let schemas = auto_tables .schemas - .as_ref() - .cloned() + .clone() .unwrap_or_else(|| db_tables_info.keys().cloned().collect()); info!( "Auto-publishing tables in schemas [{}] as '{}' sources", @@ -256,8 +255,7 @@ impl PgBuilder { if let Some(auto_funcs) = &self.auto_functions { let schemas = auto_funcs .schemas - .as_ref() - .cloned() + .clone() .unwrap_or_else(|| db_funcs_info.keys().cloned().collect()); info!( "Auto-publishing functions in schemas [{}] as '{}' sources",