• async-smtp 0.6.0/src/smtp/client/codec.rs
    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<()> {
  • boreal 0.1.0/src/compiler/variable.rs
    386
        #[allow(clippy::bool_to_int_with_if)]
    387
        let expected_start = if start < mat.start { 1 } else { 0 };
  • cargo-edit 0.11.8/src/errors.rs
    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 };
  • cfg-expr 0.14.0/src/expr/parser.rs
    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()
  • erg_compiler 0.6.3/codegen.rs
    2265
                self.emit_call_kw_instr(argc, kws);
    2266
                #[allow(clippy::bool_to_int_with_if)]
    2267
                if self.py_version.minor >= Some(11) {
  • erg_compiler 0.6.3/hir.rs
    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 };
  • 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() {
  • gst-plugin-fmp4 0.9.5/src/fmp4mux/boxes.rs
    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 {
  • hebo_codec 0.2.3/src/header.rs
    80
    impl From<PacketType> for u8 {
    81
        #[allow(clippy::bool_to_int_with_if)]
    82
        fn from(packet_type: PacketType) -> Self {
  • kparse 1.0.1/src/spans.rs
    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 {
  • leptos_router 0.1.3/src/components/routes.rs
    248
                .collect::<Vec<_>>();
    249
            #[allow(clippy::bool_to_int_with_if)] // on the splat.is_none()
    250
            segments.iter().fold(
  • openssl 0.10.45/src/x509/tests.rs
    636
    #[cfg(any(ossl102, libressl261))]
    637
    #[allow(clippy::bool_to_int_with_if)]
    638
    fn test_verify_param_set_depth_fails_verification() {
  • pagetop 0.0.33/src/config/value.rs
    224
                #[allow(clippy::bool_to_int_with_if)]
    225
                ValueKind::Boolean(value) => Ok(if value { 1 } else { 0 }),
  • polars-core 0.26.1/src/chunked_array/ops/unique/rank.rs
    200
                // INVALID LINT REMOVE LATER
    201
                #[allow(clippy::bool_to_int_with_if)]
    202
                let mut cumsum: IdxSize = if let RankMethod::Min = method {
  • reqwest-streams 0.2.4/src/csv_stream.rs
    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 };
  • rp2040-hal 0.7.0/src/usb.rs
    127
    #[allow(clippy::bool_to_int_with_if)]
    128
    fn ep_addr_to_ep_buf_ctrl_idx(ep_addr: EndpointAddress) -> usize {
  • skia-safe 0.58.0/src/core/font_parameters.rs
    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 {
  • spreadsheet-ods 0.15.0/src/io/write.rs
    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 };
  • summavy 0.25.3/src/fastfield/multivalued/index.rs
    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>) {
  • swc_ecma_minifier 0.166.10/src/util/size.rs
    81
    #[allow(clippy::bool_to_int_with_if)]
    82
    impl Size for BigIntValue {
  • 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() {
  • anyhow 1.0.68/tests/test_ensure.rs
    1
    #![allow(
    2
        clippy::bool_to_int_with_if,
    3
        clippy::diverging_sub_expression,
  • authenticator 0.4.0-alpha.7/src/lib.rs
    6
    #![allow(clippy::upper_case_acronyms)]
    7
    #![allow(clippy::bool_to_int_with_if)]
  • basic-toml 0.1.1/src/lib.rs
    117
    #![allow(
    118
        clippy::bool_to_int_with_if,
    119
        clippy::manual_let_else,
  • cargo-expand 1.0.40/src/main.rs
    1
    #![allow(
    2
        clippy::bool_to_int_with_if,
    3
        clippy::enum_glob_use,
  • difftastic 0.42.0/src/main.rs
    19
    // comments in the if/else.
    20
    #![allow(clippy::bool_to_int_with_if)]
  • dissimilar 1.0.6/src/lib.rs
    42
        clippy::blocks_in_if_conditions,
    43
        clippy::bool_to_int_with_if,
    44
        clippy::cast_possible_wrap,
  • dprint 0.34.4/src/main.rs
    1
    #![allow(clippy::bool_to_int_with_if)]
    2
    #[cfg(test)]
  • dprint-core 0.60.0/src/lib.rs
    1
    #![allow(clippy::bool_to_int_with_if)]
  • dprint-plugin-typescript 0.81.1/src/lib.rs
    1
    #![allow(clippy::bool_assert_comparison)]
    2
    #![allow(clippy::bool_to_int_with_if)]
    3
    #![allow(clippy::comparison_chain)]
  • dragonbox 0.1.4/src/lib.rs
    51
    #![allow(
    52
        clippy::bool_to_int_with_if,
    53
        clippy::cast_lossless,
  • esl 0.17.1/src/lib.rs
    11
    #![doc(test(attr(allow(unused_variables))))]
    12
    #![allow(clippy::bool_to_int_with_if)]
    13
    #![allow(clippy::collapsible_else_if)]
  • gimli 0.27.1/src/lib.rs
    29
    // Style.
    30
    #![allow(clippy::bool_to_int_with_if)]
    31
    #![allow(clippy::collapsible_else_if)]
  • git-stack 0.10.11/src/bin/git-stack/main.rs
    3
    #![allow(clippy::if_same_then_else)]
    4
    #![allow(clippy::bool_to_int_with_if)]
  • git-stack 0.10.11/src/lib.rs
    1
    #![allow(clippy::collapsible_else_if)]
    2
    #![allow(clippy::bool_to_int_with_if)]
    3
    #![allow(clippy::if_same_then_else)]
  • gitui 0.22.1/src/main.rs
    18
    	clippy::multiple_crate_versions,
    19
    	clippy::bool_to_int_with_if,
    20
    	clippy::module_name_repetitions
  • grass 0.12.2/src/lib.rs
    77
        clippy::comparison_chain,
    78
        clippy::bool_to_int_with_if,
  • grass_compiler 0.12.2/src/lib.rs
    77
        clippy::comparison_chain,
    78
        clippy::bool_to_int_with_if,
  • icrate 0.0.1/src/AppKit/fixes/mod.rs
    1
    #![allow(clippy::bool_to_int_with_if)]
    2
    use crate::common::*;
  • inquire 0.5.3/src/lib.rs
    67
    #![cfg_attr(docsrs, feature(doc_cfg))]
    68
    #![allow(clippy::bool_to_int_with_if)]
    69
    pub mod autocompletion;
  • kurbo 0.9.0/src/lib.rs
    78
        clippy::excessive_precision,
    79
        clippy::bool_to_int_with_if
    80
    )]
  • lofty 0.11.0/src/lib.rs
    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 */
  • modalkit 0.0.10/src/lib.rs
    80
    #![deny(missing_docs)]
    81
    #![allow(clippy::bool_to_int_with_if)]
    82
    #![allow(clippy::field_reassign_with_default)]
  • sctp-proto 0.1.3/src/lib.rs
    16
    #![allow(dead_code)]
    17
    #![allow(clippy::bool_to_int_with_if)]
  • supports-color 2.0.0/src/lib.rs
    23
    //! ```
    24
    #![allow(clippy::bool_to_int_with_if)]
  • syn 1.0.107/src/lib.rs
    256
    #![allow(
    257
        clippy::bool_to_int_with_if,
    258
        clippy::cast_lossless,
  • unsafe-libyaml 0.2.5/src/lib.rs
    11
    #![allow(
    12
        clippy::bool_to_int_with_if,
    13
        clippy::cast_lossless,