Skip to content

Commit

Permalink
minor linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Feb 9, 2024
1 parent 209d8b4 commit a54b2d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 2 additions & 4 deletions martin/src/pg/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit a54b2d7

Please sign in to comment.