Skip to content

Commit 0b27360

Browse files
psteinroeclaude
andcommitted
chore: apply clippy formatting suggestions
Apply automatic clippy fixes for format! macro usage 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d00534e commit 0b27360

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xtask/codegen/src/generate_splinter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ fn generate_rule_file(category_dir: &Path, metadata: &SqlRuleMetadata) -> Result
258258

259259
// Build comprehensive documentation
260260
let requires_supabase_note = if requires_supabase {
261-
format!("\n/// \n/// **Note:** This rule requires Supabase roles (`anon`, `authenticated`, `service_role`). \n/// It will be automatically skipped if these roles don't exist in your database.")
261+
"\n/// \n/// **Note:** This rule requires Supabase roles (`anon`, `authenticated`, `service_role`). \n/// It will be automatically skipped if these roles don't exist in your database.".to_string()
262262
} else {
263263
String::new()
264264
};
@@ -298,7 +298,7 @@ fn generate_rule_file(category_dir: &Path, metadata: &SqlRuleMetadata) -> Result
298298
requires_supabase_note = requires_supabase_note,
299299
sql_query_commented = sql_query
300300
.lines()
301-
.map(|line| format!("/// {}", line))
301+
.map(|line| format!("/// {line}"))
302302
.collect::<Vec<_>>()
303303
.join("\n"),
304304
category_lower = category_lower,
@@ -466,7 +466,7 @@ fn generate_registry(rules: &BTreeMap<String, SqlRuleMetadata>) -> Result<()> {
466466
let snake_name = &rule.snake_name;
467467
let group = rule.category.to_lowercase();
468468
let camel_name = &rule.name;
469-
let category_path = format!("splinter/{}/{}", group, camel_name);
469+
let category_path = format!("splinter/{group}/{camel_name}");
470470

471471
quote! {
472472
#snake_name => Some(::pgls_diagnostics::category!(#category_path))

0 commit comments

Comments
 (0)