Skip to content

Commit

Permalink
Format PR 1431 with rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 5, 2025
1 parent 4782535 commit ac4f8b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ fn test_c_return() {
assert_eq!("Hello \u{fffd}World", ffi::c_return_rust_string_lossy());
assert_eq!("2020", ffi::c_return_unique_ptr_string().to_str().unwrap());
// TODO: Use C-string literal c"2020" once MSRV is v1.77+
assert_eq!(CString::new("2020").unwrap().as_c_str(), ffi::c_return_unique_ptr_string().as_c_str());
assert_eq!(
CString::new("2020").unwrap().as_c_str(),
ffi::c_return_unique_ptr_string().as_c_str(),
);
assert_eq!(4, ffi::c_return_unique_ptr_vector_u8().len());
assert_eq!(
200_u8,
Expand Down

0 comments on commit ac4f8b0

Please sign in to comment.