From aaa6ed2e528c7c23dee4d92295e4f767253f626b Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Tue, 1 Oct 2024 16:46:26 -0700 Subject: [PATCH] make some cstrings prettier --- pgrx-tests/src/tests/array_borrowed.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pgrx-tests/src/tests/array_borrowed.rs b/pgrx-tests/src/tests/array_borrowed.rs index 63e97aaca..dc59bd47b 100644 --- a/pgrx-tests/src/tests/array_borrowed.rs +++ b/pgrx-tests/src/tests/array_borrowed.rs @@ -156,13 +156,13 @@ fn borrow_validate_cstring_array( assert_eq!( a.iter().map(|v| v.into_option()).collect::>(), vec![ - Some(CStr::from_bytes_with_nul(b"one\0")?), - Some(CStr::from_bytes_with_nul(b"two\0")?), + Some(c"one"), + Some(c"two"), None, - Some(CStr::from_bytes_with_nul(b"four\0")?), - Some(CStr::from_bytes_with_nul(b"five\0")?), + Some(c"four"), + Some(c"five"), None, - Some(CStr::from_bytes_with_nul(b"seven\0")?), + Some(c"seven"), None, None ]