Skip to content

Commit

Permalink
make some cstrings prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Oct 1, 2024
1 parent 7bce001 commit aaa6ed2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pgrx-tests/src/tests/array_borrowed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ fn borrow_validate_cstring_array(
assert_eq!(
a.iter().map(|v| v.into_option()).collect::<Vec<_>>(),
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
]
Expand Down

0 comments on commit aaa6ed2

Please sign in to comment.