27 |
/// TODO: replace CR and LF by CRLF
|
28 |
#[allow(clippy::bool_to_int_with_if)]
|
29 |
pub async fn encode<W: Write + Unpin>(&mut self, frame: &[u8], mut buf: W) -> io::Result<()> {
|
386 |
#[allow(clippy::bool_to_int_with_if)]
|
387 |
let expected_start = if start < mat.start { 1 } else { 0 };
|
56 |
fn from(err: clap::Error) -> CliError {
|
57 |
#[allow(clippy::bool_to_int_with_if)]
|
58 |
let code = if err.use_stderr() { 1 } else { 0 };
|
316 |
// In this context, the boolean to int conversion is confusing.
|
317 |
#[allow(clippy::bool_to_int_with_if)]
|
318 |
let num_predicates = top.predicates.len()
|
2265 |
self.emit_call_kw_instr(argc, kws);
|
2266 |
#[allow(clippy::bool_to_int_with_if)]
|
2267 |
if self.py_version.minor >= Some(11) {
|
269 |
pub fn len(&self) -> usize {
|
270 |
#[allow(clippy::bool_to_int_with_if)]
|
271 |
let var_argc = if self.var_args.is_none() { 0 } else { 1 };
|
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() {
|
1645 |
#[allow(clippy::identity_op)]
|
1646 |
#[allow(clippy::bool_to_int_with_if)]
|
1647 |
fn sample_flags_from_buffer(stream: &super::FragmentHeaderStream, buffer: &gst::BufferRef) -> u32 {
|
80 |
impl From<PacketType> for u8 {
|
81 |
#[allow(clippy::bool_to_int_with_if)]
|
82 |
fn from(packet_type: PacketType) -> Self {
|
514 |
let self_bytes = complete.as_bytes();
|
515 |
#[allow(clippy::bool_to_int_with_if)]
|
516 |
let skip_lines = if !is_terminal && self_bytes[end - 1] == sep {
|
820 |
let self_bytes = complete.as_bytes();
|
821 |
#[allow(clippy::bool_to_int_with_if)]
|
822 |
let skip_lines = if !is_terminal && self_bytes[end - 1] == sep {
|
248 |
.collect::<Vec<_>>();
|
249 |
#[allow(clippy::bool_to_int_with_if)] // on the splat.is_none()
|
250 |
segments.iter().fold(
|
636 |
#[cfg(any(ossl102, libressl261))]
|
637 |
#[allow(clippy::bool_to_int_with_if)]
|
638 |
fn test_verify_param_set_depth_fails_verification() {
|
224 |
#[allow(clippy::bool_to_int_with_if)]
|
225 |
ValueKind::Boolean(value) => Ok(if value { 1 } else { 0 }),
|
200 |
// INVALID LINT REMOVE LATER
|
201 |
#[allow(clippy::bool_to_int_with_if)]
|
202 |
let mut cumsum: IdxSize = if let RankMethod::Min = method {
|
40 |
#[allow(clippy::bool_to_int_with_if)] // false positive: it is not bool to int
|
41 |
let skip_header_if_expected = if with_csv_header { 1 } else { 0 };
|
127 |
#[allow(clippy::bool_to_int_with_if)]
|
128 |
fn ep_addr_to_ep_buf_ctrl_idx(ep_addr: EndpointAddress) -> usize {
|
20 |
pub const fn new(tag: FourByteTag, min: f32, def: f32, max: f32, hidden: bool) -> Self {
|
21 |
#[allow(clippy::bool_to_int_with_if)]
|
22 |
Axis {
|
1461 |
// Empty rows in between are 1 less than the delta, except at the very start.
|
1462 |
#[allow(clippy::bool_to_int_with_if)]
|
1463 |
let mut corr = if first_cell { 0u32 } else { 1u32 };
|
82 |
/// match a docid to its value position.
|
83 |
#[allow(clippy::bool_to_int_with_if)]
|
84 |
pub(crate) fn positions_to_docids(&self, doc_id_range: Range<u32>, positions: &mut Vec<u32>) {
|
81 |
#[allow(clippy::bool_to_int_with_if)]
|
82 |
impl Size for BigIntValue {
|
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() {
|
1 |
#![allow(
|
2 |
clippy::bool_to_int_with_if,
|
3 |
clippy::diverging_sub_expression,
|
6 |
#![allow(clippy::upper_case_acronyms)]
|
7 |
#![allow(clippy::bool_to_int_with_if)]
|
117 |
#![allow(
|
118 |
clippy::bool_to_int_with_if,
|
119 |
clippy::manual_let_else,
|
1 |
#![allow(
|
2 |
clippy::bool_to_int_with_if,
|
3 |
clippy::enum_glob_use,
|
19 |
// comments in the if/else.
|
20 |
#![allow(clippy::bool_to_int_with_if)]
|
42 |
clippy::blocks_in_if_conditions,
|
43 |
clippy::bool_to_int_with_if,
|
44 |
clippy::cast_possible_wrap,
|
1 |
#![allow(clippy::bool_to_int_with_if)]
|
2 |
#[cfg(test)]
|
1 |
#![allow(clippy::bool_to_int_with_if)]
|
1 |
#![allow(clippy::bool_assert_comparison)]
|
2 |
#![allow(clippy::bool_to_int_with_if)]
|
3 |
#![allow(clippy::comparison_chain)]
|
51 |
#![allow(
|
52 |
clippy::bool_to_int_with_if,
|
53 |
clippy::cast_lossless,
|
11 |
#![doc(test(attr(allow(unused_variables))))]
|
12 |
#![allow(clippy::bool_to_int_with_if)]
|
13 |
#![allow(clippy::collapsible_else_if)]
|
29 |
// Style.
|
30 |
#![allow(clippy::bool_to_int_with_if)]
|
31 |
#![allow(clippy::collapsible_else_if)]
|
3 |
#![allow(clippy::if_same_then_else)]
|
4 |
#![allow(clippy::bool_to_int_with_if)]
|
1 |
#![allow(clippy::collapsible_else_if)]
|
2 |
#![allow(clippy::bool_to_int_with_if)]
|
3 |
#![allow(clippy::if_same_then_else)]
|
18 |
clippy::multiple_crate_versions,
|
19 |
clippy::bool_to_int_with_if,
|
20 |
clippy::module_name_repetitions
|
77 |
clippy::comparison_chain,
|
78 |
clippy::bool_to_int_with_if,
|
77 |
clippy::comparison_chain,
|
78 |
clippy::bool_to_int_with_if,
|
1 |
#![allow(clippy::bool_to_int_with_if)]
|
2 |
use crate::common::*;
|
67 |
#![cfg_attr(docsrs, feature(doc_cfg))]
|
68 |
#![allow(clippy::bool_to_int_with_if)]
|
69 |
pub mod autocompletion;
|
78 |
clippy::excessive_precision,
|
79 |
clippy::bool_to_int_with_if
|
80 |
)]
|
139 |
clippy::return_self_not_must_use,
|
140 |
clippy::bool_to_int_with_if,
|
141 |
clippy::uninlined_format_args, /* This should be changed for any normal "{}", but I'm not a fan of it for any debug or width specific formatting */
|
80 |
#![deny(missing_docs)]
|
81 |
#![allow(clippy::bool_to_int_with_if)]
|
82 |
#![allow(clippy::field_reassign_with_default)]
|
16 |
#![allow(dead_code)]
|
17 |
#![allow(clippy::bool_to_int_with_if)]
|
23 |
//! ```
|
24 |
#![allow(clippy::bool_to_int_with_if)]
|
256 |
#![allow(
|
257 |
clippy::bool_to_int_with_if,
|
258 |
clippy::cast_lossless,
|
11 |
#![allow(
|
12 |
clippy::bool_to_int_with_if,
|
13 |
clippy::cast_lossless,
|