diff --git a/Cargo.toml b/Cargo.toml index d6737d16d08..094ce695df5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -663,7 +663,6 @@ float_cmp = "allow" # 12 items_after_statements = "allow" # 11 return_self_not_must_use = "allow" # 8 needless_continue = "allow" # 6 -inline_always = "allow" # 6 fn_params_excessive_bools = "allow" # 6 used_underscore_items = "allow" # 2 should_panic_without_expect = "allow" # 2 diff --git a/src/uu/mknod/src/mknod.rs b/src/uu/mknod/src/mknod.rs index cc22aee5f5c..3da723b0fbf 100644 --- a/src/uu/mknod/src/mknod.rs +++ b/src/uu/mknod/src/mknod.rs @@ -26,7 +26,6 @@ mod options { pub const CONTEXT: &str = "context"; } -#[inline(always)] fn makedev(maj: u64, min: u64) -> dev_t { // pick up from ((min & 0xff) | ((maj & 0xfff) << 8) | ((min & !0xff) << 12) | ((maj & !0xfff) << 32)) as dev_t diff --git a/src/uu/more/src/more.rs b/src/uu/more/src/more.rs index e882f40281a..be31a167e17 100644 --- a/src/uu/more/src/more.rs +++ b/src/uu/more/src/more.rs @@ -380,7 +380,6 @@ fn setup_term() -> UResult { } #[cfg(target_os = "fuchsia")] -#[inline(always)] fn setup_term() -> UResult { // no real stdout/tty on Fuchsia, just write into a pipe Ok(OutputType::Pipe(Box::new(stdout()))) @@ -400,7 +399,6 @@ fn reset_term() -> UResult<()> { } #[cfg(target_os = "fuchsia")] -#[inline(always)] fn reset_term() -> UResult<()> { Ok(()) } diff --git a/src/uu/sort/src/numeric_str_cmp.rs b/src/uu/sort/src/numeric_str_cmp.rs index 40530cc5145..fd06104eacf 100644 --- a/src/uu/sort/src/numeric_str_cmp.rs +++ b/src/uu/sort/src/numeric_str_cmp.rs @@ -223,7 +223,6 @@ pub fn human_numeric_str_cmp( /// Compare two numbers as strings without parsing them as a number first. This should be more performant and can handle numbers more precisely. /// [`NumInfo`] is needed to provide a fast path for most numbers. -#[inline(always)] pub fn numeric_str_cmp((a, a_info): (&[u8], &NumInfo), (b, b_info): (&[u8], &NumInfo)) -> Ordering { // check for a difference in the sign if a_info.sign != b_info.sign { diff --git a/src/uu/sort/src/sort.rs b/src/uu/sort/src/sort.rs index 071163c5aee..9495c7dd619 100644 --- a/src/uu/sort/src/sort.rs +++ b/src/uu/sort/src/sort.rs @@ -2100,7 +2100,6 @@ pub enum GeneralBigDecimalParseResult { /// Parse the beginning string into a [`GeneralBigDecimalParseResult`]. /// Using a [`GeneralBigDecimalParseResult`] instead of [`ExtendedBigDecimal`] is necessary to correctly order floats. -#[inline(always)] fn general_bd_parse(a: &[u8]) -> GeneralBigDecimalParseResult { // The string should be valid ASCII to be parsed. let Ok(a) = std::str::from_utf8(a) else {