update changelog and fix fmt

This commit is contained in:
Antoni Spaanderman
2024-06-29 20:15:12 +02:00
parent d9ab3e0db0
commit 1dabf0e838
2 changed files with 3 additions and 4 deletions

View File

@@ -3,6 +3,8 @@ when upgrading from a version of rust-sdl2 to another.
### Next
[PR #1416](https://github.com/Rust-SDL2/rust-sdl2/pull/1416) Apply clippy fixes, fix deprecations and other code quality improvements.
[PR #1408](https://github.com/Rust-SDL2/rust-sdl2/pull/1408) Allow comparing `Version`s, add constant with the version the bindings were compiled with.
[PR #1407](https://github.com/Rust-SDL2/rust-sdl2/pull/1407) Add new use_ios_framework for linking to SDL2.framework on iOS

View File

@@ -386,10 +386,7 @@ pub fn get_error() -> String {
pub fn set_error(err: &str) -> Result<(), NulError> {
let c_string = CString::new(err)?;
unsafe {
sys::SDL_SetError(
b"%s\0".as_ptr() as *const c_char,
c_string.as_ptr(),
);
sys::SDL_SetError(b"%s\0".as_ptr() as *const c_char, c_string.as_ptr());
}
Ok(())
}