Skip to content

Commit

Permalink
fix: formatting for .rs files
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal committed Dec 18, 2024
1 parent 7360e91 commit e7fd0ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions cargo-pgrx/src/command/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,8 @@ fn compute_sql(package_name: &str, manifest: &Manifest) -> eyre::Result<()> {

let command_str = format!("{command:?}");
tracing::debug!(command = %command_str, "Running");
let embed_output = command
.output()
.wrap_err_with(|| format!("failed to spawn pgrx_embed: {command_str}"))?;
let embed_output =
command.output().wrap_err_with(|| format!("failed to spawn pgrx_embed: {command_str}"))?;
tracing::trace!(status_code = %embed_output.status, command = %command_str, "Finished");

if !embed_output.status.success() {
Expand Down
3 changes: 1 addition & 2 deletions pgrx-sql-entity-graph/src/extension_sql/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ impl ToSql for ExtensionSqlEntity {
fn to_sql(&self, _context: &PgrxSql) -> eyre::Result<String> {
let ExtensionSqlEntity { file, line, sql, creates, requires, .. } = self;
let creates = if !creates.is_empty() {
let joined =
creates.iter().map(|i| format!("-- {i}")).collect::<Vec<_>>().join("\n");
let joined = creates.iter().map(|i| format!("-- {i}")).collect::<Vec<_>>().join("\n");
format!(
"\
-- creates:\n\
Expand Down

0 comments on commit e7fd0ef

Please sign in to comment.