From 1dabf0e838cd1f8184b8cd4668768ad87affd9b2 Mon Sep 17 00:00:00 2001 From: Antoni Spaanderman <56turtle56@gmail.com> Date: Sat, 29 Jun 2024 20:15:12 +0200 Subject: [PATCH] update changelog and fix fmt --- changelog.md | 2 ++ src/sdl2/sdl.rs | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 76f74c4cfe..12808ac830 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/src/sdl2/sdl.rs b/src/sdl2/sdl.rs index 8ccb14ae4c..fdef86c5e7 100644 --- a/src/sdl2/sdl.rs +++ b/src/sdl2/sdl.rs @@ -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(()) }