all: use expect attribute where possible
This commit is contained in:
parent
c3b50dc653
commit
e377470f3f
134 changed files with 241 additions and 296 deletions
|
|
@ -4,7 +4,7 @@ use {
|
|||
uapi::{c, Errno},
|
||||
};
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[cfg_attr(not(feature = "it"), expect(dead_code))]
|
||||
pub fn num_cpus() -> Result<u32, OsError> {
|
||||
let mut buf: SmallVec<[usize; 32]> = smallvec_inline![0; 32];
|
||||
loop {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue