File tree Expand file tree Collapse file tree 4 files changed +3
-2
lines changed Expand file tree Collapse file tree 4 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11//! Definitions for Horizon OS
22
3+ #![ forbid( unsafe_op_in_unsafe_fn) ]
34#![ stable( feature = "raw_ext" , since = "1.1.0" ) ]
45
56pub mod fs;
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ pub type time_t = libc::time_t;
3838#[ repr( C ) ]
3939#[ derive( Clone ) ]
4040#[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
41+ #[ allow( dead_code) ] // This exists for parity with other `raw` modules, but isn't actually used.
4142pub struct stat {
4243 #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
4344 pub st_dev : dev_t ,
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ cfg_if::cfg_if! {
6767 ) ) ] {
6868 #[ inline]
6969 unsafe fn aligned_malloc( layout: & Layout ) -> * mut u8 {
70- libc:: memalign( layout. align( ) , layout. size( ) ) as * mut u8
70+ unsafe { libc:: memalign( layout. align( ) , layout. size( ) ) as * mut u8 }
7171 }
7272 } else {
7373 #[ inline]
Original file line number Diff line number Diff line change 1- use crate :: fmt;
21use crate :: io;
32use crate :: num:: NonZero ;
43use crate :: sys:: pal:: unix:: unsupported:: * ;
You can’t perform that action at this time.
0 commit comments