• alure 0.1.0/src/encoding/cursor.rs
    26
    #[cfg_attr(feature = "std", derive(Error))]
    27
    #[allow(clippy::branches_sharing_code)]
    28
    pub enum CursorError {
  • alure 0.1.0/src/instr/bytecode.rs
    27
    #[cfg_attr(feature = "std", derive(Error))]
    28
    #[allow(clippy::branches_sharing_code)]
    29
    pub enum DecodeError {
    43
    #[cfg_attr(feature = "std", derive(Error))]
    44
    #[allow(clippy::branches_sharing_code)]
    45
    pub enum EncodeError {
  • alure 0.1.0/src/reg/value.rs
    235
    #[display(inner)]
    236
    #[allow(clippy::branches_sharing_code)]
    237
    pub enum LiteralParseError {
  • assembly-data 0.3.0/src/xml/common/mod.rs
    93
        if let Event::End(end) = xml.read_event(buf)? {
    94
            #[allow(clippy::branches_sharing_code)]
    95
            if end.name() == key.as_bytes() {
  • assembly-xml 0.3.0/src/common/mod.rs
    93
        if let Event::End(end) = xml.read_event(buf)? {
    94
            #[allow(clippy::branches_sharing_code)]
    95
            if end.name() == key.as_bytes() {
  • bluer-tools 0.15.4/src/gattcat.rs
    1427
        #[allow(clippy::branches_sharing_code)]
    1428
        let (app, events) = if nordic_uart {
  • boostvoronoi_core 0.10.3/src/builder.rs
    141
            for line in segments.into_iter().map(|s| -> Line<I> { s.into() }) {
    142
                #[allow(clippy::branches_sharing_code)]
    143
                let se = if line.start == line.end {
  • cargo-cache 0.8.3/src/test_helpers.rs
    16
    #[allow(dead_code)] // only used in tests
    17
    #[allow(clippy::branches_sharing_code)]
    18
    pub(crate) fn bin_path() -> String {
  • cess-sp-porep 0.1.2/src/stacked/circuit/params.rs
    97
        #[allow(clippy::too_many_arguments)]
    98
        #[allow(clippy::branches_sharing_code)]
    99
        pub fn synthesize<CS: ConstraintSystem<Fr>>(
  • crc-any 2.4.3/src/crc_u16.rs
    254
                #[allow(clippy::branches_sharing_code)]
    255
                for _ in 0..8u8 {
    280
                #[allow(clippy::branches_sharing_code)]
    281
                for _ in 0..bits {
  • crc-any 2.4.3/src/crc_u32.rs
    254
                #[allow(clippy::branches_sharing_code)]
    255
                for _ in 0..8u8 {
    280
                #[allow(clippy::branches_sharing_code)]
    281
                for _ in 0..bits {
  • crc-any 2.4.3/src/crc_u64.rs
    254
                #[allow(clippy::branches_sharing_code)]
    255
                for _ in 0..8u8 {
    280
                #[allow(clippy::branches_sharing_code)]
    281
                for _ in 0..bits {
  • crc-any 2.4.3/src/crc_u8.rs
    223
                #[allow(clippy::branches_sharing_code)]
    224
                for _ in 0..8u8 {
    245
                #[allow(clippy::branches_sharing_code)]
    246
                for _ in 0..8 {
  • deonym 0.1.2/src/nym/responses.rs
    38
            #[allow(clippy::branches_sharing_code)]
    39
            if with_reply_surb {
  • druid 0.8.2/src/text/attribute.rs
    264
        // the branches are much more readable without sharing code
    265
        #[allow(dead_code, clippy::branches_sharing_code)]
    266
        fn edit(&mut self, changed: Range<usize>, new_len: usize) {
  • druid-shell 0.8.0/src/backend/gtk/window.rs
    1311
            if let Some(state) = self.state.upgrade() {
    1312
                #[allow(clippy::branches_sharing_code)]
    1313
                if queue.is_empty() {
    1324
            if let Some(state) = self.state.upgrade() {
    1325
                #[allow(clippy::branches_sharing_code)]
    1326
                if queue.is_empty() {
  • endbasic-core 0.10.0/src/reader.rs
    275
        impl io::Read for FaultyReader {
    276
            #[allow(clippy::branches_sharing_code)]
    277
            fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
  • esthri-cli 9.1.0/src/http_server.rs
    463
    #[allow(clippy::branches_sharing_code)]
    464
    fn format_object_link(path: &str) -> Markup {
  • evebox-suricata-rule-parser 0.2.0/src/lib.rs
    111
        let mut end = 0;
    112
        #[allow(clippy::branches_sharing_code)]
    113
        for (i, c) in input.chars().enumerate() {
  • femtovg 0.4.0/src/path/cache.rs
    1030
    #[allow(clippy::branches_sharing_code)]
    1031
    fn bevel_join(verts: &mut Vec<Vertex>, p0: &Point, p1: &Point, lw: f32, rw: f32, lu: f32, ru: f32) {
  • fonttools 0.1.0/src/otvar/tuplevariationstore.rs
    119
                }
    120
                #[allow(clippy::branches_sharing_code)] // Just easier to understand this way
    121
                let mut deltas: VecDeque<Delta> = if is_gvar {
  • forc-util 0.33.1/src/lib.rs
    22
    /// Continually go up in the file tree until a specified file is found.
    23
    #[allow(clippy::branches_sharing_code)]
    24
    pub fn find_parent_dir_with_file(starter_path: &Path, file_name: &str) -> Option<PathBuf> {
  • grass_compiler 0.12.2/src/selector/attribute.rs
    169
    impl Display for Attribute {
    170
        #[allow(clippy::branches_sharing_code)]
    171
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
  • grenad 0.4.4/src/sorter.rs
    441
            #[allow(clippy::branches_sharing_code)]
    442
            if self.entries.fits(key, val) || (!self.threshold_exceeded() && self.allow_realloc) {
  • lexical-write-float 0.8.5/src/algorithm.rs
    804
    #[inline]
    805
    #[allow(clippy::branches_sharing_code)]
    806
    pub unsafe fn write_digits_u64(bytes: &mut [u8], mantissa: u64) -> usize {
  • linfa-linalg 0.1.0/src/lobpcg/svd.rs
    72
            // branch n > m (for A is [n x m])
    73
            #[allow(clippy::branches_sharing_code)]
    74
            let (u, v) = if self.ngm {
  • luallaby 0.1.0-alpha.3/src/compiler/expression.rs
    129
                            TableField::List(val) => {
    130
                                #[allow(clippy::branches_sharing_code)]
    131
                                if fields.peek().is_none()
  • midl-parser 0.1.1/src/lexer/lexer_impl.rs
    434
            // "inf" and "nan" are handled as part of ident
    435
            #[allow(clippy::branches_sharing_code)]
    436
            if self.next_char_if_eq('.') {
  • minimal-lexical 0.2.1/src/bigint.rs
    186
    #[inline(always)]
    187
    #[allow(clippy::branches_sharing_code)]
    188
    pub fn from_u64(x: u64) -> VecType {
  • mmtk 0.16.0/src/plan/generational/immix/global.rs
    114
        #[allow(clippy::if_same_then_else)]
    115
        #[allow(clippy::branches_sharing_code)]
    116
        fn schedule_collection(&'static self, scheduler: &GCWorkScheduler<Self::VM>) {
  • monument 0.13.4/src/builder/mod.rs
    493
    #[allow(clippy::branches_sharing_code)]
    494
    fn default_calling_positions(place_not: &PlaceNot) -> Vec<String> {
  • mprocs-vt100 0.1.1/src/term.rs
    151
      #[allow(unused_assignments)]
    152
      #[allow(clippy::branches_sharing_code)]
    153
      fn write_buf(&self, buf: &mut Vec<u8>) {
  • nativeshell 0.1.16/src/shell/platform/linux/menu.rs
    308
        // Convert & mnemonics to _
    309
        #[allow(clippy::branches_sharing_code)]
    310
        fn convert_mnemonics(title: &str) -> String {
  • nativeshell 0.1.16/src/shell/platform/macos/menu.rs
    618
    #[allow(clippy::branches_sharing_code)]
    619
    fn remove_mnemonics(title: &str) -> String {
  • near-sdk 4.1.1/src/collections/legacy_tree_map.rs
    425
        fn check_balance(&mut self, at: u64, key: &K) -> u64 {
    426
            #[allow(clippy::branches_sharing_code)]
    427
            match self.node(at) {
  • near-sdk 4.1.1/src/collections/unordered_map/mod.rs
    141
                Some(index_raw) => {
    142
                    #[allow(clippy::branches_sharing_code)]
    143
                    if self.len() == 1 {
  • near-sdk 4.1.1/src/collections/unordered_set.rs
    102
                Some(index_raw) => {
    103
                    #[allow(clippy::branches_sharing_code)]
    104
                    if self.len() == 1 {
  • noise_search 0.8.0/src/json_shred.rs
    532
                    }
    533
                    #[allow(clippy::branches_sharing_code)] // false positive
    534
                    Some(JsonEvent::ArrayEnd) => {
  • nyx-space 1.1.1/src/utils.rs
    62
    #[allow(clippy::if_same_then_else)]
    63
    #[allow(clippy::branches_sharing_code)]
    64
    pub fn are_eigenvalues_stable<N: DimName>(eigenvalues: OVector<Complex<f64>, N>) -> bool
  • opensrv-mysql 0.3.0/src/commands.rs
    31
    #[allow(clippy::branches_sharing_code)]
    32
    pub fn client_handshake(i: &[u8], after_tls: bool) -> nom::IResult<&[u8], ClientHandshake> {
  • pdf 0.8.0/src/crypt.rs
    427
                    let user_hash_computed = user_check_hash.finalize();
    428
                    #[allow(clippy::branches_sharing_code)]
    429
                    if user_hash_computed.as_slice() == user_hash {
  • piet-web 0.6.2/src/text/lines.rs
    14
    // baseline when available.
    15
    #[allow(clippy::branches_sharing_code)] // clearer as written
    16
    pub(crate) fn calculate_line_metrics(
  • qtrac-retest 4.0.14/src/bin/retest/cli.rs
    108
    #[allow(clippy::branches_sharing_code)]
    109
    fn parse_numbers(s: &str, numbers: &mut BTreeSet<u32>) -> XResult<()> {
  • quinn-proto 0.9.2/src/congestion/cubic.rs
    180
            // Fast convergence
    181
            #[allow(clippy::branches_sharing_code)]
    182
            // https://github.com/rust-lang/rust-clippy/issues/7198
  • rcalc_lib 1.0.0/src/parse.rs
    253
                    // distinguish between "1 - 2+i4" and "1 - -2+i4"
    254
                    #[allow(clippy::branches_sharing_code)]
    255
                    if state.is_last_value && val.starts_with('-') {
  • regress 0.4.1/src/parse.rs
    752
        #[allow(clippy::branches_sharing_code)]
    753
        fn try_escape_unicode_sequence(&mut self) -> Option<char> {
  • sawp-modbus 0.11.1/src/lib.rs
    653
        // meaning in the variable name.
    654
        #[allow(clippy::branches_sharing_code)]
    655
        fn parse_write_request<'a>(&mut self, input: &'a [u8]) -> Result<&'a [u8]> {
    736
        // meaning in the variable name.
    737
        #[allow(clippy::branches_sharing_code)]
    738
        fn parse_write_response<'a>(&mut self, input: &'a [u8]) -> Result<&'a [u8]> {
  • show-image 0.13.1/src/features/tch.rs
    202
    /// Compute the image info of a tensor, given a known pixel format.
    203
    #[allow(clippy::branches_sharing_code)] // Stop lying, clippy.
    204
    fn tensor_info(tensor: &tch::Tensor, pixel_format: PixelFormat, planar: bool) -> Result<ImageInfo, String> {
  • sise 0.8.0/src/serializer.rs
    175
        #[allow(clippy::branches_sharing_code)]
    176
        pub fn begin_list(&mut self, break_line_at: usize) {
  • soroban-wasmi-validation 0.4.1/src/func.rs
    246
                    // Ignore clippy as pop(..) != pop(..) + push_value(..) under some conditions
    247
                    #[allow(clippy::branches_sharing_code)]
    248
                    if self.frame_stack.len() == 1 {
  • spotifyd 0.3.4/src/config.rs
    439
                // spotifyd section exists. Try to merge it with global section.
    440
                #[allow(clippy::branches_sharing_code)]
    441
                if let Some(global_section) = global_config_section {
  • starlark_derive 0.7.0/src/typ.rs
    191
    impl StarFun {
    192
        #[allow(clippy::branches_sharing_code)] // False positive
    193
        pub fn resolve(&mut self, module_kind: ModuleKind) -> syn::Result<()> {
  • static_init 1.0.3/benches/multi_threaded/synchronised_bench.rs
    110
                    }
    111
                    #[allow(clippy::branches_sharing_code)] //on purpose
    112
                    let duration = if MICRO_BENCH {
  • stm32f4xx-hal 0.14.0/src/dma/mod.rs
    1458
        #[allow(clippy::branches_sharing_code)]
    1459
        fn next_transfer_common(
    1537
        /// overrun occurs in double buffering mode.
    1538
        #[allow(clippy::branches_sharing_code)]
    1539
        unsafe fn next_transfer_with_common(
  • storage-proofs-porep 12.0.0/src/stacked/circuit/params.rs
    97
        #[allow(clippy::too_many_arguments)]
    98
        #[allow(clippy::branches_sharing_code)]
    99
        pub fn synthesize<CS: ConstraintSystem<Fr>>(
  • stringsext 2.3.4/src/helper.rs
    279
                    if self.utf8f.pass_ubf_filter(leading_byte) {
    280
                        #[allow(clippy::branches_sharing_code)]
    281
                        if !self.require_same_unicode_block
  • time-macros 0.2.6/src/date.rs
    82
        // year-month-day
    83
        #[allow(clippy::branches_sharing_code)] // clarity
    84
        if consume_punct('-', chars).is_ok() {
  • tqdm-rs 0.1.1/src/lib.rs
    170
            #[allow(clippy::branches_sharing_code)]
    171
            if next.is_some() {
  • vt100 0.15.1/src/term.rs
    151
        #[allow(unused_assignments)]
    152
        #[allow(clippy::branches_sharing_code)]
    153
        fn write_buf(&self, buf: &mut Vec<u8>) {
  • zcash_proofs 0.10.0/src/circuit/ecc.rs
    860
                #[allow(clippy::branches_sharing_code)]
    861
                if should_we_select {
  • alure 0.1.0/src/instr/op_codes.rs
    11
    #![allow(clippy::branches_sharing_code)]
  • awint_core 0.8.0/src/lib.rs
    25
    // we need certain hot loops to stay separate
    26
    #![allow(clippy::branches_sharing_code)]
    27
    // TODO when clippy issue 9175 is fixed remove
  • awint_ext 0.8.0/src/lib.rs
    18
    // we need certain hot loops to stay separate
    19
    #![allow(clippy::branches_sharing_code)]
    20
    #![deny(unsafe_op_in_unsafe_fn)]
  • clap 4.1.4/src/lib.rs
    90
    #![allow(clippy::single_component_path_imports)]
    91
    #![allow(clippy::branches_sharing_code)]
    92
    // Doesn't allow for debug statements, etc to be unique
  • clap2 4.0.32/src/lib.rs
    90
    #![allow(clippy::single_component_path_imports)]
    91
    #![allow(clippy::branches_sharing_code)]
    92
    // Doesn't allow for debug statements, etc to be unique
  • codegenrs 2.0.0/src/lib.rs
    21
    #![allow(clippy::branches_sharing_code)]
  • escargot 0.5.7/src/msg.rs
    41
        fn next_msg(&mut self) -> CargoResult<Option<Message>> {
    42
            #![allow(clippy::branches_sharing_code)]
  • grass 0.12.2/src/lib.rs
    49
        clippy::option_if_let_else,
    50
        clippy::branches_sharing_code,
    51
        clippy::derive_partial_eq_without_eq,
  • grass_compiler 0.12.2/src/lib.rs
    49
        clippy::option_if_let_else,
    50
        clippy::branches_sharing_code,
    51
        clippy::derive_partial_eq_without_eq,
  • iced-x86 1.18.0/src/lib.rs
    28
    #![allow(clippy::bool_assert_comparison)]
    29
    #![allow(clippy::branches_sharing_code)]
    30
    #![allow(clippy::cast_lossless)]
  • palc 3.1.6/src/lib.rs
    21
    #![allow(clippy::single_component_path_imports)]
    22
    #![allow(clippy::branches_sharing_code)]
    23
    // Doesn't allow for debug statements, etc to be unique
  • rune 0.12.0/src/lib.rs
    166
    #![allow(clippy::should_implement_trait)]
    167
    #![allow(clippy::branches_sharing_code)]
    168
    #![allow(clippy::match_like_matches_macro)]
  • serde_derive 1.0.152/src/lib.rs
    20
        // clippy false positive: https://github.com/rust-lang/rust-clippy/issues/7054
    21
        clippy::branches_sharing_code,
    22
        clippy::cognitive_complexity,
  • trycmd 0.14.11/src/lib.rs
    229
    // Doesn't distinguish between incidental sharing vs essential sharing
    230
    #![allow(clippy::branches_sharing_code)]
    231
    // Forces indentation that may not represent the logic