mirror of
https://github.com/touchHLE/rust-sdl2.git
synced 2026-01-31 01:25:23 +01:00
update changelog and fix fmt
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user