diff --git a/pgrx-tests/src/tests/roundtrip_tests.rs b/pgrx-tests/src/tests/roundtrip_tests.rs index 757078734a..9ca159e24e 100644 --- a/pgrx-tests/src/tests/roundtrip_tests.rs +++ b/pgrx-tests/src/tests/roundtrip_tests.rs @@ -214,10 +214,10 @@ mod tests { // Vec>, // vec![ // None, - // Some(unsafe { CStr::from_bytes_with_nul_unchecked(b"&one\0") }), - // Some(unsafe { CStr::from_bytes_with_nul_unchecked(b"&two\0") }), + // Some( c"&one" ), + // Some( c"&two" ), // None, - // Some(unsafe { CStr::from_bytes_with_nul_unchecked(b"&three\0") }), + // Some( c"&three" ), // None, // ] // ); diff --git a/pgrx-tests/tests/todo/roundtrip-tests.rs b/pgrx-tests/tests/todo/roundtrip-tests.rs index 0379ba5fda..ce84039c29 100644 --- a/pgrx-tests/tests/todo/roundtrip-tests.rs +++ b/pgrx-tests/tests/todo/roundtrip-tests.rs @@ -76,10 +76,10 @@ mod tests { Vec>, vec![ None, - Some(unsafe { CStr::from_bytes_with_nul_unchecked(b"&one\0") }), - Some(unsafe { CStr::from_bytes_with_nul_unchecked(b"&two\0") }), + Some( c"&one" ), + Some( c"&two" ), None, - Some(unsafe { CStr::from_bytes_with_nul_unchecked(b"&three\0") }), + Some( c"&three" ), None, ] );