@@ -19,7 +19,7 @@ extern crate core;
19
19
extern crate libc;
20
20
21
21
use core:: mem;
22
- use std:: { string , char, ptr } ;
22
+ use std:: { char, ptr } ;
23
23
use self :: ll:: { chtype, FILE_p , mmask_t } ;
24
24
pub use self :: constants:: * ;
25
25
@@ -565,7 +565,7 @@ pub fn is_syncok(w: WINDOW) -> bool
565
565
566
566
567
567
pub fn keyname ( c : i32 ) -> String
568
- { unsafe { string :: raw :: from_buf ( ll:: keyname ( c) as * const u8 ) } }
568
+ { unsafe { String :: from_raw_buf ( ll:: keyname ( c) as * const u8 ) } }
569
569
570
570
571
571
pub fn keypad ( w : WINDOW , bf : bool ) -> i32
@@ -581,7 +581,7 @@ pub fn leaveok(w: WINDOW, bf: bool) -> i32
581
581
582
582
583
583
pub fn longname ( ) -> String
584
- { unsafe { string :: raw :: from_buf ( ll:: longname ( ) as * const u8 ) } }
584
+ { unsafe { String :: from_raw_buf ( ll:: longname ( ) as * const u8 ) } }
585
585
586
586
587
587
pub fn meta ( w : WINDOW , bf : bool ) -> i32
@@ -1125,7 +1125,7 @@ pub fn slk_init(fmt: i32) -> i32
1125
1125
1126
1126
1127
1127
pub fn slk_label ( n : i32 ) -> String
1128
- { unsafe { string :: raw :: from_buf ( ll:: slk_label ( n) as * const u8 ) } }
1128
+ { unsafe { String :: from_raw_buf ( ll:: slk_label ( n) as * const u8 ) } }
1129
1129
1130
1130
1131
1131
pub fn slk_noutrefresh ( ) -> i32
@@ -1177,7 +1177,7 @@ pub fn termattrs() -> u32
1177
1177
1178
1178
1179
1179
pub fn termname ( ) -> String
1180
- { unsafe { string :: raw :: from_buf ( ll:: termname ( ) as * const u8 ) } }
1180
+ { unsafe { String :: from_raw_buf ( ll:: termname ( ) as * const u8 ) } }
1181
1181
1182
1182
1183
1183
pub fn timeout ( delay : i32 )
@@ -1205,11 +1205,11 @@ pub fn tigetnum(capname: &str) -> i32
1205
1205
1206
1206
1207
1207
pub fn tigetstr ( capname : & str ) -> String
1208
- { unsafe { { string :: raw :: from_buf ( ll:: tigetstr ( capname. to_c_str ( ) . as_ptr ( ) ) as * const u8 ) } } }
1208
+ { unsafe { { String :: from_raw_buf ( ll:: tigetstr ( capname. to_c_str ( ) . as_ptr ( ) ) as * const u8 ) } } }
1209
1209
1210
1210
1211
1211
pub fn tparm ( s : & str ) -> String
1212
- { unsafe { { string :: raw :: from_buf ( ll:: tparm ( s. to_c_str ( ) . as_ptr ( ) ) as * const u8 ) } } }
1212
+ { unsafe { { String :: from_raw_buf ( ll:: tparm ( s. to_c_str ( ) . as_ptr ( ) ) as * const u8 ) } } }
1213
1213
1214
1214
1215
1215
pub fn ungetch ( ch : i32 ) -> i32
0 commit comments