Skip to content

Commit

Permalink
Silence warnings in 1.78 (#1693)
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee authored May 3, 2024
1 parent 525e885 commit ce9c076
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions pgrx/src/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,6 @@ impl RawArray {
}

impl Toasty for RawArray {
fn detoast(self) -> Toast<RawArray> {
unsafe { RawArray::detoast_from_varlena(self.into_ptr().cast()) }
}

unsafe fn drop_toast(&mut self) {
unsafe { pg_sys::pfree(self.ptr.as_ptr().cast()) }
}
Expand Down
4 changes: 2 additions & 2 deletions pgrx/src/datum/from.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ impl FromDatum for String {
#[inline]
unsafe fn from_polymorphic_datum(
datum: pg_sys::Datum,
is_null: bool,
typoid: pg_sys::Oid,
_is_null: bool,
_typoid: pg_sys::Oid,
) -> Option<String> {
let varlena = pg_sys::pg_detoast_datum_packed(datum.cast_mut_ptr());
let converted_varlena = convert_varlena_to_str_memoized(varlena);
Expand Down
1 change: 0 additions & 1 deletion pgrx/src/toast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ where
}

pub(crate) trait Toasty: Sized {
fn detoast(self) -> Toast<Self>;
/// Why does it always land butter-side down?
unsafe fn drop_toast(&mut self);
}
Expand Down

0 comments on commit ce9c076

Please sign in to comment.