• arimaa_engine_step 1.0.1/src/engine.rs
    315
            clippy::if_same_then_else,
    316
            clippy::needless_bool
    317
        )]
  • cranefack 0.4.1/src/optimizations/passes.rs
    1834
                OpType::LLoop(children, info) => {
    1835
                    #[allow(clippy::needless_bool, clippy::if_same_then_else)]
    1836
                    if !children.is_empty()
  • erfa-sys 0.2.1/build.rs
    7
    #[cfg(not(feature = "static"))]
    8
    #[allow(clippy::if_same_then_else, clippy::needless_bool)]
    9
    fn infer_static(name: &str) -> bool {
  • everscale-types 0.1.0-pre.4/src/util.rs
    7
    pub const fn unlikely(b: bool) -> bool {
    8
        #[allow(clippy::needless_bool, clippy::bool_to_int_with_if)]
    9
        if (1i32).checked_div(if b { 0 } else { 1 }).is_none() {
  • hakari 0.13.1/src/cli_ops/manage_deps.rs
    151
    #[allow(clippy::if_same_then_else, clippy::needless_bool)]
    152
    fn needs_update_v2(hakari_package: &PackageMetadata<'_>, link: PackageLink<'_>) -> bool {
  • hid-io 0.1.0-beta1/src/device/hidusb/mod.rs
    76
            let buf = {
    77
                #[allow(clippy::needless_bool)]
    78
                let prepend = if cfg!(target_os = "linux") || cfg!(target_os = "macos") {
  • hid-io-core 0.1.2/src/device/hidapi/mod.rs
    73
            let buf = {
    74
                #[allow(clippy::needless_bool)]
    75
                #[allow(clippy::if_same_then_else)]
  • intdate 0.1.0/src/helpers.rs
    13
    // Allowed to make the code clearer.
    14
    #[allow(clippy::needless_bool)]
    15
    pub(crate) fn is_year_leap(date: u32) -> bool {
  • lexical-parse-float 0.8.5/src/options.rs
    129
        #[inline(always)]
    130
        #[allow(clippy::if_same_then_else, clippy::needless_bool)]
    131
        pub const fn nan_str_is_valid(&self) -> bool {
    150
        #[inline(always)]
    151
        #[allow(clippy::if_same_then_else, clippy::needless_bool)]
    152
        pub const fn inf_str_is_valid(&self) -> bool {
    176
        #[inline(always)]
    177
        #[allow(clippy::if_same_then_else, clippy::needless_bool)]
    178
        pub const fn infinity_string_is_valid(&self) -> bool {
    201
        #[inline(always)]
    202
        #[allow(clippy::if_same_then_else, clippy::needless_bool)]
    203
        pub const fn is_valid(&self) -> bool {
  • lexical-util 0.8.5/src/format_flags.rs
    765
    #[inline]
    766
    #[allow(clippy::if_same_then_else, clippy::needless_bool)]
    767
    pub const fn is_valid_options_punctuation(format: u128, exponent: u8, decimal_point: u8) -> bool {
  • lexical-write-float 0.8.5/src/options.rs
    226
        #[inline(always)]
    227
        #[allow(clippy::if_same_then_else, clippy::needless_bool)]
    228
        pub const fn nan_str_is_valid(&self) -> bool {
    247
        #[inline(always)]
    248
        #[allow(clippy::if_same_then_else, clippy::needless_bool)]
    249
        pub const fn inf_str_is_valid(&self) -> bool {
    268
        #[inline(always)]
    269
        #[allow(clippy::if_same_then_else, clippy::needless_bool)]
    270
        pub const fn is_valid(&self) -> bool {
  • likely_stable 0.1.2/src/lib.rs
    64
    pub const fn likely(b: bool) -> bool {
    65
        #[allow(clippy::needless_bool)]
    66
        if (1i32).checked_div(if b { 1 } else { 0 }).is_some() {
    77
    pub const fn unlikely(b: bool) -> bool {
    78
        #[allow(clippy::needless_bool)]
    79
        if (1i32).checked_div(if b { 0 } else { 1 }).is_none() {
  • marlu 0.8.0/build.rs
    7
    #[cfg(feature = "cuda")]
    8
    #[allow(clippy::if_same_then_else, clippy::needless_bool)]
    9
    fn infer_static(name: &str) -> bool {
  • mockall_derive 0.11.3/src/lib.rs
    605
        // standard names.
    606
        #[allow(clippy::needless_bool)]
    607
        #[allow(clippy::if_same_then_else)]
  • mwalib 0.16.0/build.rs
    5
    fn infer_static(name: &str) -> bool {
    6
        #[allow(clippy::if_same_then_else, clippy::needless_bool)]
    7
        if env::var(format!("{}_STATIC", name.to_uppercase())).is_ok() {
  • pal-sys 0.1.0/build.rs
    12
    #[cfg(not(feature = "static"))]
    13
    #[allow(clippy::if_same_then_else, clippy::needless_bool)]
    14
    fn infer_static(name: &str) -> bool {
  • r3_kernel 0.1.4/src/utils/ctz.rs
    6
    #[allow(clippy::needless_bool)]
    7
    const HAS_CTZ: bool = if cfg!(target_arch = "riscv32") || cfg!(target_arch = "riscv64") {
    23
    /// Indicates whether the target includes a 32-bit hardware multiplier.
    24
    #[allow(clippy::needless_bool)]
    25
    const HAS_MUL: bool = if cfg!(target_arch = "riscv32") || cfg!(target_arch = "riscv64") {
    36
    /// Indicates whether the target includes a 32-bit barrel shifter.
    37
    #[allow(clippy::needless_bool)]
    38
    const HAS_SHIFTER: bool = if cfg!(target_arch = "msp430") {
    65
    /// must be avoided at any cost.
    66
    #[allow(clippy::needless_bool)]
    67
    const HAS_FAST_LOAD: bool =
  • random_name_generator 0.1.2/src/rng_joiner.rs
    39
        #[allow(clippy::needless_bool)]
    40
        #[allow(clippy::if_same_then_else)]
  • rrdb 0.0.1/src/lib/parser/implements/common.rs
    376
                        // BETWEEN 파싱중이면서 괄호가 없는 상태라면 연산자가 아닌 것으로 간주.
    377
                        #[allow(clippy::needless_bool)]
    378
                        if context.in_between_clause && !context.in_parentheses {
  • substrait-validator 0.0.11/src/output/extension/namespace.rs
    116
            #[allow(clippy::if_same_then_else)]
    117
            #[allow(clippy::needless_bool)]
    118
            if local && !with_prefix {
  • tl-proto 0.4.1/src/util.rs
    3
    pub const fn unlikely(b: bool) -> bool {
    4
        #[allow(clippy::needless_bool, clippy::bool_to_int_with_if)]
    5
        if (1i32).checked_div(if b { 0 } else { 1 }).is_none() {
  • ungoliant 1.2.3/src/filtering/record.rs
    78
            // clippy lint to avoid having to use a match pattern due to PartialOrd
    79
            #[allow(clippy::needless_bool)]
    80
            if f64::from(bucket_upper) < threshold {
  • unic-char-property 0.9.0/tests/bool_property_macro.rs
    40
    #[cfg_attr(feature = "cargo-clippy", allow(needless_bool))]
    41
    #[test]
  • uu_ls 0.0.17/src/ls.rs
    675
            #[allow(clippy::needless_bool)]
    676
            let mut show_control = if options.get_flag(options::HIDE_CONTROL_CHARS) {
  • zcash_primitives 0.10.0/src/sapling/note_encryption.rs
    386
    #[allow(clippy::if_same_then_else)]
    387
    #[allow(clippy::needless_bool)]
    388
    pub fn plaintext_version_is_valid<P: consensus::Parameters>(
  • async-resol-vbus 0.1.0/src/lib.rs
    80
    #![allow(clippy::large_enum_variant)]
    81
    #![allow(clippy::needless_bool)]
    82
    #![allow(clippy::needless_pass_by_value)]
  • chipmunk-sdl2 1.0.0/src/drivers/mod.rs
    1
    #![allow(clippy::needless_bool)]
    2
    #![allow(clippy::if_same_then_else)]
  • clap 4.1.4/src/parser/parser.rs
    643
        fn is_new_arg(&self, next: &clap_lex::ParsedArg<'_>, current_positional: &Arg) -> bool {
    644
            #![allow(clippy::needless_bool)] // Prefer consistent if/else-if ladder
  • clap2 4.0.32/src/parser/parser.rs
    647
        fn is_new_arg(&self, next: &clap_lex::ParsedArg<'_>, current_positional: &Arg) -> bool {
    648
            #![allow(clippy::needless_bool)] // Prefer consistent if/else-if ladder
  • compiler_builtins 0.1.86/src/int/specialized_div_rem/mod.rs
    8
    #![allow(clippy::if_same_then_else)]
    9
    #![allow(clippy::needless_bool)]
  • directx_math 0.2.2/src/lib.rs
    82
    #![allow(clippy::useless_let_if_seq)]
    83
    #![allow(clippy::needless_bool)]
    84
    #![allow(clippy::assign_op_pattern)]
  • etterna 0.1.0/src/lib.rs
    4
    	clippy::collapsible_if,
    5
    	clippy::needless_bool
    6
    )]
  • etternaonline_api 0.2.0/src/lib.rs
    4
    	clippy::collapsible_if,
    5
    	clippy::needless_bool,
    6
    	clippy::too_many_arguments
  • flo_curves 0.6.1/src/bezier/path/ray.rs
    1
    #![allow(clippy::needless_bool)]        // Couple of places where two different conditions have the same result: don't want to combine them as the algorithms are much harder to parse
  • resol-vbus 0.2.1/src/lib.rs
    132
    #![allow(clippy::large_enum_variant)]
    133
    #![allow(clippy::needless_bool)]
    134
    #![allow(clippy::needless_pass_by_value)]
  • tokio-resol-vbus 0.1.0/src/live_data_stream.rs
    1
    #![allow(clippy::if_same_then_else)]
    2
    #![allow(clippy::needless_bool)]
  • ux-dx 0.2.1/src/lib.rs
    16
        clippy::new_without_default,
    17
        clippy::needless_bool,
    18
        clippy::comparison_to_empty,
  • xi-trace 0.2.0/src/chrome_trace_dump.rs
    16
        clippy::if_same_then_else,
    17
        clippy::needless_bool,
    18
        clippy::needless_pass_by_value,