File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -574,7 +574,7 @@ impl GameController {
574
574
575
575
/// Send a controller specific effect packet.
576
576
#[ 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 > {
578
578
let result = unsafe {
579
579
sys:: SDL_GameControllerSendEffect (
580
580
self . raw ,
@@ -584,7 +584,7 @@ impl GameController {
584
584
} ;
585
585
586
586
if result != 0 {
587
- Err ( IntegerOrSdlError :: SdlError ( get_error ( ) ) )
587
+ Err ( get_error ( ) )
588
588
} else {
589
589
Ok ( ( ) )
590
590
}
Original file line number Diff line number Diff line change @@ -1433,10 +1433,7 @@ impl Window {
1433
1433
pub fn icc_profile ( & self ) -> Result < Vec < u8 > , String > {
1434
1434
unsafe {
1435
1435
let mut size: sys:: size_t = 0 ;
1436
- let data = sys:: SDL_GetWindowICCProfile (
1437
- self . context . raw ,
1438
- & mut size as * const sys:: size_t as * mut _ ,
1439
- ) ;
1436
+ let data = sys:: SDL_GetWindowICCProfile ( self . context . raw , & mut size as * mut _ ) ;
1440
1437
if data. is_null ( ) {
1441
1438
return Err ( get_error ( ) ) ;
1442
1439
}
You can’t perform that action at this time.
0 commit comments