File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ impl AudioCVT {
354
354
355
355
unsafe {
356
356
if ( * self . raw ) . needed != 1 {
357
- return Err ( "no convertion needed!" . to_strbuf ( ) )
357
+ return Err ( "no convertion needed!" . into_owned ( ) )
358
358
}
359
359
// set len
360
360
( * self . raw ) . len = src. len ( ) as c_int ;
Original file line number Diff line number Diff line change @@ -1142,7 +1142,7 @@ pub fn push_event(event: Event) -> SdlResult<()> {
1142
1142
else { Err ( get_error ( ) ) }
1143
1143
} ,
1144
1144
None => {
1145
- Err ( "Unsupport event type to push back to queue." . to_strbuf ( ) )
1145
+ Err ( "Unsupport event type to push back to queue." . into_owned ( ) )
1146
1146
}
1147
1147
}
1148
1148
}
Original file line number Diff line number Diff line change @@ -733,7 +733,7 @@ impl Texture {
733
733
if result {
734
734
Ok ( ( texw as f64 , texh as f64 ) )
735
735
} else {
736
- Err ( "Operation not supported" . to_strbuf ( ) )
736
+ Err ( "Operation not supported" . into_owned ( ) )
737
737
}
738
738
}
739
739
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ pub fn was_inited(flags: InitFlag) -> InitFlag {
115
115
pub fn get_error ( ) -> String {
116
116
unsafe {
117
117
let cstr = CString :: new ( ll:: SDL_GetError ( ) , false ) ;
118
- cstr. as_str ( ) . unwrap ( ) . to_strbuf ( )
118
+ cstr. as_str ( ) . unwrap ( ) . into_owned ( )
119
119
}
120
120
}
121
121
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ pub fn get_version() -> Version {
61
61
pub fn get_revision ( ) -> String {
62
62
unsafe {
63
63
let ret = ll:: SDL_GetRevision ( ) ;
64
- CString :: new ( ret, false ) . as_str ( ) . unwrap ( ) . to_strbuf ( )
64
+ CString :: new ( ret, false ) . as_str ( ) . unwrap ( ) . into_owned ( )
65
65
}
66
66
}
67
67
You can’t perform that action at this time.
0 commit comments