From 4c31d5a3502fa37bf7d9fbdc315babee5b25b3ae Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Tue, 6 Feb 2024 23:59:35 -0500 Subject: [PATCH] Update pgrx/src/list/flat_list.rs Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com> --- pgrx/src/list/flat_list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgrx/src/list/flat_list.rs b/pgrx/src/list/flat_list.rs index 3a010e9596..b2bcc35e3d 100644 --- a/pgrx/src/list/flat_list.rs +++ b/pgrx/src/list/flat_list.rs @@ -113,7 +113,7 @@ impl<'cx, T: Enlist> List<'cx, T> { let list_size = 128; unsafe { let list: *mut pg_sys::List = mcx.alloc_bytes(list_size).cast(); - assert!(!list.is_null()); + assert!(list.is_non_null()); (*list).type_ = T::LIST_TAG; (*list).max_length = ((list_size - mem::size_of::()) / mem::size_of::())