315 |
clippy::if_same_then_else,
|
316 |
clippy::needless_bool
|
317 |
)]
|
1834 |
OpType::LLoop(children, info) => {
|
1835 |
#[allow(clippy::needless_bool, clippy::if_same_then_else)]
|
1836 |
if !children.is_empty()
|
7 |
#[cfg(not(feature = "static"))]
|
8 |
#[allow(clippy::if_same_then_else, clippy::needless_bool)]
|
9 |
fn infer_static(name: &str) -> bool {
|
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() {
|
151 |
#[allow(clippy::if_same_then_else, clippy::needless_bool)]
|
152 |
fn needs_update_v2(hakari_package: &PackageMetadata<'_>, link: PackageLink<'_>) -> bool {
|
76 |
let buf = {
|
77 |
#[allow(clippy::needless_bool)]
|
78 |
let prepend = if cfg!(target_os = "linux") || cfg!(target_os = "macos") {
|
73 |
let buf = {
|
74 |
#[allow(clippy::needless_bool)]
|
75 |
#[allow(clippy::if_same_then_else)]
|
13 |
// Allowed to make the code clearer.
|
14 |
#[allow(clippy::needless_bool)]
|
15 |
pub(crate) fn is_year_leap(date: u32) -> bool {
|
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 {
|
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 {
|
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 {
|
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() {
|
7 |
#[cfg(feature = "cuda")]
|
8 |
#[allow(clippy::if_same_then_else, clippy::needless_bool)]
|
9 |
fn infer_static(name: &str) -> bool {
|
605 |
// standard names.
|
606 |
#[allow(clippy::needless_bool)]
|
607 |
#[allow(clippy::if_same_then_else)]
|
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() {
|
12 |
#[cfg(not(feature = "static"))]
|
13 |
#[allow(clippy::if_same_then_else, clippy::needless_bool)]
|
14 |
fn infer_static(name: &str) -> bool {
|
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 =
|
39 |
#[allow(clippy::needless_bool)]
|
40 |
#[allow(clippy::if_same_then_else)]
|
376 |
// BETWEEN 파싱중이면서 괄호가 없는 상태라면 연산자가 아닌 것으로 간주.
|
377 |
#[allow(clippy::needless_bool)]
|
378 |
if context.in_between_clause && !context.in_parentheses {
|
116 |
#[allow(clippy::if_same_then_else)]
|
117 |
#[allow(clippy::needless_bool)]
|
118 |
if local && !with_prefix {
|
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() {
|
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 {
|
40 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_bool))]
|
41 |
#[test]
|
675 |
#[allow(clippy::needless_bool)]
|
676 |
let mut show_control = if options.get_flag(options::HIDE_CONTROL_CHARS) {
|
386 |
#[allow(clippy::if_same_then_else)]
|
387 |
#[allow(clippy::needless_bool)]
|
388 |
pub fn plaintext_version_is_valid<P: consensus::Parameters>(
|
80 |
#![allow(clippy::large_enum_variant)]
|
81 |
#![allow(clippy::needless_bool)]
|
82 |
#![allow(clippy::needless_pass_by_value)]
|
1 |
#![allow(clippy::needless_bool)]
|
2 |
#![allow(clippy::if_same_then_else)]
|
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
|
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
|
8 |
#![allow(clippy::if_same_then_else)]
|
9 |
#![allow(clippy::needless_bool)]
|
82 |
#![allow(clippy::useless_let_if_seq)]
|
83 |
#![allow(clippy::needless_bool)]
|
84 |
#![allow(clippy::assign_op_pattern)]
|
4 |
clippy::collapsible_if,
|
5 |
clippy::needless_bool
|
6 |
)]
|
4 |
clippy::collapsible_if,
|
5 |
clippy::needless_bool,
|
6 |
clippy::too_many_arguments
|
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
|
132 |
#![allow(clippy::large_enum_variant)]
|
133 |
#![allow(clippy::needless_bool)]
|
134 |
#![allow(clippy::needless_pass_by_value)]
|
1 |
#![allow(clippy::if_same_then_else)]
|
2 |
#![allow(clippy::needless_bool)]
|
16 |
clippy::new_without_default,
|
17 |
clippy::needless_bool,
|
18 |
clippy::comparison_to_empty,
|
16 |
clippy::if_same_then_else,
|
17 |
clippy::needless_bool,
|
18 |
clippy::needless_pass_by_value,
|