Skip to content

Commit

Permalink
update changelog and fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
antonilol committed Jun 29, 2024
1 parent d9ab3e0 commit 1dabf0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions src/sdl2/sdl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit 1dabf0e

Please sign in to comment.