26 |
#[cfg_attr(feature = "std", derive(Error))]
|
27 |
#[allow(clippy::branches_sharing_code)]
|
28 |
pub enum CursorError {
|
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 {
|
235 |
#[display(inner)]
|
236 |
#[allow(clippy::branches_sharing_code)]
|
237 |
pub enum LiteralParseError {
|
93 |
if let Event::End(end) = xml.read_event(buf)? {
|
94 |
#[allow(clippy::branches_sharing_code)]
|
95 |
if end.name() == key.as_bytes() {
|
93 |
if let Event::End(end) = xml.read_event(buf)? {
|
94 |
#[allow(clippy::branches_sharing_code)]
|
95 |
if end.name() == key.as_bytes() {
|
1427 |
#[allow(clippy::branches_sharing_code)]
|
1428 |
let (app, events) = if nordic_uart {
|
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 {
|
16 |
#[allow(dead_code)] // only used in tests
|
17 |
#[allow(clippy::branches_sharing_code)]
|
18 |
pub(crate) fn bin_path() -> String {
|
97 |
#[allow(clippy::too_many_arguments)]
|
98 |
#[allow(clippy::branches_sharing_code)]
|
99 |
pub fn synthesize<CS: ConstraintSystem<Fr>>(
|
254 |
#[allow(clippy::branches_sharing_code)]
|
255 |
for _ in 0..8u8 {
|
280 |
#[allow(clippy::branches_sharing_code)]
|
281 |
for _ in 0..bits {
|
254 |
#[allow(clippy::branches_sharing_code)]
|
255 |
for _ in 0..8u8 {
|
280 |
#[allow(clippy::branches_sharing_code)]
|
281 |
for _ in 0..bits {
|
254 |
#[allow(clippy::branches_sharing_code)]
|
255 |
for _ in 0..8u8 {
|
280 |
#[allow(clippy::branches_sharing_code)]
|
281 |
for _ in 0..bits {
|
223 |
#[allow(clippy::branches_sharing_code)]
|
224 |
for _ in 0..8u8 {
|
245 |
#[allow(clippy::branches_sharing_code)]
|
246 |
for _ in 0..8 {
|
38 |
#[allow(clippy::branches_sharing_code)]
|
39 |
if with_reply_surb {
|
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) {
|
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() {
|
275 |
impl io::Read for FaultyReader {
|
276 |
#[allow(clippy::branches_sharing_code)]
|
277 |
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
|
463 |
#[allow(clippy::branches_sharing_code)]
|
464 |
fn format_object_link(path: &str) -> Markup {
|
111 |
let mut end = 0;
|
112 |
#[allow(clippy::branches_sharing_code)]
|
113 |
for (i, c) in input.chars().enumerate() {
|
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) {
|
119 |
}
|
120 |
#[allow(clippy::branches_sharing_code)] // Just easier to understand this way
|
121 |
let mut deltas: VecDeque<Delta> = if is_gvar {
|
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> {
|
169 |
impl Display for Attribute {
|
170 |
#[allow(clippy::branches_sharing_code)]
|
171 |
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
441 |
#[allow(clippy::branches_sharing_code)]
|
442 |
if self.entries.fits(key, val) || (!self.threshold_exceeded() && self.allow_realloc) {
|
804 |
#[inline]
|
805 |
#[allow(clippy::branches_sharing_code)]
|
806 |
pub unsafe fn write_digits_u64(bytes: &mut [u8], mantissa: u64) -> usize {
|
72 |
// branch n > m (for A is [n x m])
|
73 |
#[allow(clippy::branches_sharing_code)]
|
74 |
let (u, v) = if self.ngm {
|
129 |
TableField::List(val) => {
|
130 |
#[allow(clippy::branches_sharing_code)]
|
131 |
if fields.peek().is_none()
|
434 |
// "inf" and "nan" are handled as part of ident
|
435 |
#[allow(clippy::branches_sharing_code)]
|
436 |
if self.next_char_if_eq('.') {
|
186 |
#[inline(always)]
|
187 |
#[allow(clippy::branches_sharing_code)]
|
188 |
pub fn from_u64(x: u64) -> VecType {
|
114 |
#[allow(clippy::if_same_then_else)]
|
115 |
#[allow(clippy::branches_sharing_code)]
|
116 |
fn schedule_collection(&'static self, scheduler: &GCWorkScheduler<Self::VM>) {
|
493 |
#[allow(clippy::branches_sharing_code)]
|
494 |
fn default_calling_positions(place_not: &PlaceNot) -> Vec<String> {
|
151 |
#[allow(unused_assignments)]
|
152 |
#[allow(clippy::branches_sharing_code)]
|
153 |
fn write_buf(&self, buf: &mut Vec<u8>) {
|
308 |
// Convert & mnemonics to _
|
309 |
#[allow(clippy::branches_sharing_code)]
|
310 |
fn convert_mnemonics(title: &str) -> String {
|
618 |
#[allow(clippy::branches_sharing_code)]
|
619 |
fn remove_mnemonics(title: &str) -> String {
|
425 |
fn check_balance(&mut self, at: u64, key: &K) -> u64 {
|
426 |
#[allow(clippy::branches_sharing_code)]
|
427 |
match self.node(at) {
|
141 |
Some(index_raw) => {
|
142 |
#[allow(clippy::branches_sharing_code)]
|
143 |
if self.len() == 1 {
|
102 |
Some(index_raw) => {
|
103 |
#[allow(clippy::branches_sharing_code)]
|
104 |
if self.len() == 1 {
|
532 |
}
|
533 |
#[allow(clippy::branches_sharing_code)] // false positive
|
534 |
Some(JsonEvent::ArrayEnd) => {
|
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
|
31 |
#[allow(clippy::branches_sharing_code)]
|
32 |
pub fn client_handshake(i: &[u8], after_tls: bool) -> nom::IResult<&[u8], ClientHandshake> {
|
427 |
let user_hash_computed = user_check_hash.finalize();
|
428 |
#[allow(clippy::branches_sharing_code)]
|
429 |
if user_hash_computed.as_slice() == user_hash {
|
14 |
// baseline when available.
|
15 |
#[allow(clippy::branches_sharing_code)] // clearer as written
|
16 |
pub(crate) fn calculate_line_metrics(
|
108 |
#[allow(clippy::branches_sharing_code)]
|
109 |
fn parse_numbers(s: &str, numbers: &mut BTreeSet<u32>) -> XResult<()> {
|
180 |
// Fast convergence
|
181 |
#[allow(clippy::branches_sharing_code)]
|
182 |
// https://github.com/rust-lang/rust-clippy/issues/7198
|
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('-') {
|
752 |
#[allow(clippy::branches_sharing_code)]
|
753 |
fn try_escape_unicode_sequence(&mut self) -> Option<char> {
|
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]> {
|
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> {
|
175 |
#[allow(clippy::branches_sharing_code)]
|
176 |
pub fn begin_list(&mut self, break_line_at: usize) {
|
246 |
// Ignore clippy as pop(..) != pop(..) + push_value(..) under some conditions
|
247 |
#[allow(clippy::branches_sharing_code)]
|
248 |
if self.frame_stack.len() == 1 {
|
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 {
|
191 |
impl StarFun {
|
192 |
#[allow(clippy::branches_sharing_code)] // False positive
|
193 |
pub fn resolve(&mut self, module_kind: ModuleKind) -> syn::Result<()> {
|
110 |
}
|
111 |
#[allow(clippy::branches_sharing_code)] //on purpose
|
112 |
let duration = if MICRO_BENCH {
|
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(
|
97 |
#[allow(clippy::too_many_arguments)]
|
98 |
#[allow(clippy::branches_sharing_code)]
|
99 |
pub fn synthesize<CS: ConstraintSystem<Fr>>(
|
279 |
if self.utf8f.pass_ubf_filter(leading_byte) {
|
280 |
#[allow(clippy::branches_sharing_code)]
|
281 |
if !self.require_same_unicode_block
|
82 |
// year-month-day
|
83 |
#[allow(clippy::branches_sharing_code)] // clarity
|
84 |
if consume_punct('-', chars).is_ok() {
|
170 |
#[allow(clippy::branches_sharing_code)]
|
171 |
if next.is_some() {
|
151 |
#[allow(unused_assignments)]
|
152 |
#[allow(clippy::branches_sharing_code)]
|
153 |
fn write_buf(&self, buf: &mut Vec<u8>) {
|
860 |
#[allow(clippy::branches_sharing_code)]
|
861 |
if should_we_select {
|
11 |
#![allow(clippy::branches_sharing_code)]
|
25 |
// we need certain hot loops to stay separate
|
26 |
#![allow(clippy::branches_sharing_code)]
|
27 |
// TODO when clippy issue 9175 is fixed remove
|
18 |
// we need certain hot loops to stay separate
|
19 |
#![allow(clippy::branches_sharing_code)]
|
20 |
#![deny(unsafe_op_in_unsafe_fn)]
|
90 |
#![allow(clippy::single_component_path_imports)]
|
91 |
#![allow(clippy::branches_sharing_code)]
|
92 |
// Doesn't allow for debug statements, etc to be unique
|
90 |
#![allow(clippy::single_component_path_imports)]
|
91 |
#![allow(clippy::branches_sharing_code)]
|
92 |
// Doesn't allow for debug statements, etc to be unique
|
21 |
#![allow(clippy::branches_sharing_code)]
|
41 |
fn next_msg(&mut self) -> CargoResult<Option<Message>> {
|
42 |
#![allow(clippy::branches_sharing_code)]
|
49 |
clippy::option_if_let_else,
|
50 |
clippy::branches_sharing_code,
|
51 |
clippy::derive_partial_eq_without_eq,
|
49 |
clippy::option_if_let_else,
|
50 |
clippy::branches_sharing_code,
|
51 |
clippy::derive_partial_eq_without_eq,
|
28 |
#![allow(clippy::bool_assert_comparison)]
|
29 |
#![allow(clippy::branches_sharing_code)]
|
30 |
#![allow(clippy::cast_lossless)]
|
21 |
#![allow(clippy::single_component_path_imports)]
|
22 |
#![allow(clippy::branches_sharing_code)]
|
23 |
// Doesn't allow for debug statements, etc to be unique
|
166 |
#![allow(clippy::should_implement_trait)]
|
167 |
#![allow(clippy::branches_sharing_code)]
|
168 |
#![allow(clippy::match_like_matches_macro)]
|
20 |
// clippy false positive: https://github.com/rust-lang/rust-clippy/issues/7054
|
21 |
clippy::branches_sharing_code,
|
22 |
clippy::cognitive_complexity,
|
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
|