File tree Expand file tree Collapse file tree 4 files changed +3
-7
lines changed Expand file tree Collapse file tree 4 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1414#![ deny( unstable_features) ]
1515#![ deny( missing_copy_implementations) ]
1616#![ deny( missing_debug_implementations) ]
17- // XXX Allow deprecated items until release 0.16.0. See issue #1096.
18- #![ allow( deprecated) ]
1917
2018// External crates
2119#[ macro_use]
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ impl Termios {
250250 #[ doc( hidden) ]
251251 pub unsafe fn default_uninit ( ) -> Self {
252252 Termios {
253- inner : RefCell :: new ( mem:: uninitialized ( ) ) ,
253+ inner : RefCell :: new ( mem:: zeroed ( ) ) ,
254254 input_flags : InputFlags :: empty ( ) ,
255255 output_flags : OutputFlags :: empty ( ) ,
256256 control_flags : ControlFlags :: empty ( ) ,
Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ mod freebsd_ioctls {
323323 #[ test]
324324 fn test_ioctl_read ( ) {
325325 let file = tempfile ( ) . unwrap ( ) ;
326- let mut termios = unsafe { mem:: uninitialized ( ) } ;
326+ let mut termios = unsafe { mem:: zeroed ( ) } ;
327327 let res = unsafe { tiocgeta ( file. as_raw_fd ( ) , & mut termios) } ;
328328 assert_eq ! ( res, Err ( Sys ( ENOTTY ) ) ) ;
329329 }
@@ -332,7 +332,7 @@ mod freebsd_ioctls {
332332 #[ test]
333333 fn test_ioctl_write_ptr ( ) {
334334 let file = tempfile ( ) . unwrap ( ) ;
335- let termios: termios = unsafe { mem:: uninitialized ( ) } ;
335+ let termios: termios = unsafe { mem:: zeroed ( ) } ;
336336 let res = unsafe { tiocseta ( file. as_raw_fd ( ) , & termios) } ;
337337 assert_eq ! ( res, Err ( Sys ( ENOTTY ) ) ) ;
338338 }
Original file line number Diff line number Diff line change 1- // XXX Allow deprecated items until release 0.16.0. See issue #1096.
2- #![ allow( deprecated) ]
31extern crate bytes;
42#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
53extern crate caps;
You can’t perform that action at this time.
0 commit comments