Skip to content

Commit 8892974

Browse files
Corrections based on code review
1 parent fffd2b4 commit 8892974

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/sdl2/controller.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ impl GameController {
574574

575575
/// Send a controller specific effect packet.
576576
#[doc(alias = "SDL_GameControllerSendEffect")]
577-
pub fn send_effect(&mut self, data: &[u8]) -> Result<(), IntegerOrSdlError> {
577+
pub fn send_effect(&mut self, data: &[u8]) -> Result<(), String> {
578578
let result = unsafe {
579579
sys::SDL_GameControllerSendEffect(
580580
self.raw,
@@ -584,7 +584,7 @@ impl GameController {
584584
};
585585

586586
if result != 0 {
587-
Err(IntegerOrSdlError::SdlError(get_error()))
587+
Err(get_error())
588588
} else {
589589
Ok(())
590590
}

src/sdl2/video.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,7 @@ impl Window {
14351435
let mut size: sys::size_t = 0;
14361436
let data = sys::SDL_GetWindowICCProfile(
14371437
self.context.raw,
1438-
&mut size as *const sys::size_t as *mut _,
1438+
&mut size as *mut _,
14391439
);
14401440
if data.is_null() {
14411441
return Err(get_error());

0 commit comments

Comments
 (0)