Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cargo-pgrx/src/command/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ fn copy_file(
) -> eyre::Result<()> {
let Some(dest_dir) = dest.parent() else {
// what fresh hell could ever cause such an error?
eyre::bail!("no directory to copy to: {}", dest.display())
eyre::bail!("no directory to copy to: {}", dest.display());
};
match dest_dir.try_exists() {
Ok(false) => fs::create_dir_all(dest_dir).wrap_err_with(|| {
Expand Down
4 changes: 3 additions & 1 deletion cargo-pgrx/src/object_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ fn parse_macho_header(data: &[u8]) -> eyre::Result<(MachBits, MachEndian, usize)
object::macho::MH_MAGIC => Ok((MachBits::Bits32, MachEndian::Big, 28)),
object::macho::MH_CIGAM_64 => Ok((MachBits::Bits64, MachEndian::Little, 32)),
object::macho::MH_MAGIC_64 => Ok((MachBits::Bits64, MachEndian::Big, 32)),
_ => bail!("invalid Mach-O magic"),
_ => {
bail!("invalid Mach-O magic");
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion pgrx-sql-entity-graph/src/section.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ impl<'a> EntryReader<'a> {
let sql = match self.read_argument_sql_owned()? {
Ok(crate::metadata::SqlMapping::As(sql)) => sql,
Ok(other) => {
bail!("invalid SQL declaration mapping in schema entry: {other:?}")
bail!("invalid SQL declaration mapping in schema entry: {other:?}");
}
Err(err) => return Err(err.into()),
};
Expand Down
Loading