File tree Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ impl FileDesc {
53
53
}
54
54
55
55
#[ inline]
56
- fn is_read_vectored ( & self ) -> bool {
56
+ pub fn is_read_vectored ( & self ) -> bool {
57
57
true
58
58
}
59
59
Original file line number Diff line number Diff line change @@ -351,28 +351,19 @@ impl ExitStatus {
351
351
}
352
352
353
353
fn exited ( & self ) -> bool {
354
- /*unsafe*/
355
- { libc:: WIFEXITED ( self . 0 ) }
354
+ libc:: WIFEXITED ( self . 0 )
356
355
}
357
356
358
357
pub fn success ( & self ) -> bool {
359
358
self . code ( ) == Some ( 0 )
360
359
}
361
360
362
361
pub fn code ( & self ) -> Option < i32 > {
363
- if self . exited ( ) {
364
- Some ( /*unsafe*/ { libc:: WEXITSTATUS ( self . 0 ) } )
365
- } else {
366
- None
367
- }
362
+ if self . exited ( ) { Some ( libc:: WEXITSTATUS ( self . 0 ) ) } else { None }
368
363
}
369
364
370
365
pub fn signal ( & self ) -> Option < i32 > {
371
- if !self . exited ( ) {
372
- Some ( /*unsafe*/ { libc:: WTERMSIG ( self . 0 ) } )
373
- } else {
374
- None
375
- }
366
+ if !self . exited ( ) { Some ( libc:: WTERMSIG ( self . 0 ) ) } else { None }
376
367
}
377
368
}
378
369
Original file line number Diff line number Diff line change 2
2
#![ unstable( feature = "thread_local_internals" , issue = "none" ) ]
3
3
4
4
pub unsafe fn register_dtor ( t : * mut u8 , dtor : unsafe extern "C" fn ( * mut u8 ) ) {
5
- use crate :: sys_common:: thread_local :: register_dtor_fallback;
5
+ use crate :: sys_common:: thread_local_dtor :: register_dtor_fallback;
6
6
register_dtor_fallback ( t, dtor) ;
7
7
}
You can’t perform that action at this time.
0 commit comments