217 |
// Clippy false positive: Standard pattern for excluding index item from list.
|
218 |
#[allow(clippy::if_not_else)]
|
219 |
let children: Vec<AccessibleProxy<'a>> = parent
|
162 |
// c. If Type(len) is not Number, then
|
163 |
#[allow(clippy::if_not_else)]
|
164 |
let int_len = if !len.is_number() {
|
789 |
// 8. If R ≠ 0, then
|
790 |
#[allow(clippy::if_not_else)]
|
791 |
if var_r != 0 {
|
882 |
// c. If r is failure, then
|
883 |
#[allow(clippy::if_not_else)]
|
884 |
if m.start() as u64 != last_index {
|
1049 |
// 5. If global is false, then
|
1050 |
#[allow(clippy::if_not_else)]
|
1051 |
if !global {
|
2319 |
// c. If none is found, the replacement text is the String "$<".
|
2320 |
#[allow(clippy::if_not_else)]
|
2321 |
if !found {
|
2400 |
// f. If srcType is different from targetType, then
|
2401 |
#[allow(clippy::if_not_else)]
|
2402 |
if o.typed_array_name() != a_array.typed_array_name() {
|
330 |
// c. If C is not the code unit 0x0025 (PERCENT SIGN), then
|
331 |
#[allow(clippy::if_not_else)]
|
332 |
let s = if c != 0x0025_u16 {
|
383 |
/// Panics if the process writes non-UTF bytes to stdout.
|
384 |
#[allow(clippy::if_not_else, clippy::range_plus_one, clippy::assign_op_pattern)]
|
385 |
pub fn parse_rustc_version(version: impl AsRef<str>) -> Result<(String, RustChannel), String> {
|
140 |
#[allow(clippy::if_not_else)]
|
141 |
fn items(&mut self) -> &[PathBuf] {
|
192 |
#[allow(clippy::if_not_else)]
|
193 |
if time.nanosecond() != 0 {
|
51 |
// Allow because it's looks more readable.
|
52 |
#[allow(clippy::if_not_else)]
|
53 |
fn check_valid_name<F>(
|
121 |
fn pop(&mut self) -> Option<Self::Element> {
|
122 |
#[allow(clippy::if_not_else)] // Makes more sense this way
|
123 |
if !self.is_empty() {
|
540 |
unsafe fn hole_link(&self) -> Option<usize> {
|
541 |
#[allow(clippy::if_not_else)] // Makes more sense this way
|
542 |
if self.discrim & Self::LINK_DISCRIM_MASK != 0 {
|
62 |
#[allow(clippy::if_not_else)]
|
63 |
pub fn merge(&self, other: &Self) -> MediaQueryMergeResult {
|
34 |
// Allow because it's looks more readable.
|
35 |
#[allow(clippy::if_not_else)]
|
36 |
fn check_valid_name<F>(
|
601 |
// be resolved.
|
602 |
#[allow(clippy::if_not_else, clippy::unnecessary_filter_map)]
|
603 |
fn handle(
|
34 |
// Allow because it's looks more readable.
|
35 |
#[allow(clippy::if_not_else)]
|
36 |
fn check_valid_name<F>(
|
331 |
#[allow(clippy::if_not_else)]
|
332 |
Some(
|
197 |
// Clone the project or open the repository
|
198 |
#[allow(clippy::if_not_else)]
|
199 |
let repository = if local_repository_path.exists() {
|
514 |
/// within this type with `template_arguments1`.
|
515 |
#[allow(clippy::if_not_else)]
|
516 |
pub fn instantiate(
|
21 |
#[allow(
|
22 |
clippy::if_not_else,
|
23 |
mutable_transmutes,
|
27 |
clippy::cast_possible_wrap,
|
28 |
clippy::if_not_else,
|
29 |
clippy::too_many_lines
|
42 |
#[allow(
|
43 |
clippy::if_not_else,
|
44 |
mutable_transmutes,
|
46 |
clippy::cast_ptr_alignment,
|
47 |
clippy::if_not_else,
|
48 |
clippy::cast_ptr_alignment,
|
14 |
#[allow(
|
15 |
clippy::if_not_else,
|
16 |
mutable_transmutes,
|
20 |
#[allow(
|
21 |
clippy::if_not_else,
|
22 |
mutable_transmutes,
|
232 |
#[allow(clippy::if_not_else)]
|
233 |
if time.nanosecond() != 0 {
|
133 |
let _lock = self.lock.lock().unwrap();
|
134 |
#[allow(clippy::if_not_else)]
|
135 |
if !self.initialized.load(Ordering::Relaxed) {
|
180 |
// (http://schd.ws/hosted_files/cppcon2016/74/HansWeakAtomics.pdf Page 27)
|
181 |
#[allow(clippy::if_not_else)]
|
182 |
if !self.initialized.load(Ordering::Acquire) {
|
234 |
// (http://schd.ws/hosted_files/cppcon2016/74/HansWeakAtomics.pdf Page 27)
|
235 |
#[allow(clippy::if_not_else)]
|
236 |
if !self.initialized.load(Ordering::Acquire) {
|
20 |
// alternative is actually much more unreadable in this context.
|
21 |
#[allow(clippy::if_not_else)]
|
22 |
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result
|
10 |
#![allow(clippy::match_bool)]
|
11 |
#![allow(clippy::if_not_else)]
|
12 |
#![allow(clippy::stutter)]
|
331 |
clippy::enum_glob_use,
|
332 |
clippy::if_not_else,
|
333 |
clippy::integer_division,
|
25 |
clippy::similar_names,
|
26 |
clippy::if_not_else,
|
27 |
clippy::must_use_candidate,
|
23 |
clippy::module_name_repetitions,
|
24 |
clippy::if_not_else,
|
25 |
clippy::too_many_lines,
|
24 |
clippy::module_name_repetitions,
|
25 |
clippy::if_not_else,
|
26 |
clippy::similar_names,
|
27 |
clippy::similar_names,
|
28 |
clippy::if_not_else,
|
29 |
clippy::must_use_candidate,
|
24 |
clippy::similar_names,
|
25 |
clippy::if_not_else,
|
26 |
clippy::must_use_candidate,
|
24 |
clippy::similar_names,
|
25 |
clippy::if_not_else,
|
26 |
clippy::must_use_candidate,
|
49 |
clippy::module_name_repetitions,
|
50 |
clippy::if_not_else,
|
51 |
clippy::needless_pass_by_value,
|
23 |
clippy::similar_names,
|
24 |
clippy::if_not_else,
|
25 |
clippy::must_use_candidate,
|
10 |
#![allow(clippy::match_bool)]
|
11 |
#![allow(clippy::if_not_else)]
|
12 |
#![allow(clippy::stutter)]
|
43 |
// Sometimes it looks better to invert the order, such as when the `else` block is small
|
44 |
#![allow(clippy::if_not_else)]
|
45 |
// Shadowing is common and doesn't affect understanding
|
150 |
#![allow(clippy::similar_names)]
|
151 |
#![allow(clippy::if_not_else)]
|
152 |
#![allow(clippy::doc_markdown)]
|
309 |
clippy::explicit_auto_deref,
|
310 |
clippy::if_not_else,
|
311 |
clippy::items_after_statements,
|
61 |
clippy::explicit_auto_deref,
|
62 |
clippy::if_not_else,
|
63 |
clippy::items_after_statements,
|
10 |
#![allow(clippy::cast_possible_wrap)]
|
11 |
#![allow(clippy::if_not_else)]
|
12 |
#![allow(clippy::module_name_repetitions)]
|
20 |
clippy::cast_sign_loss,
|
21 |
clippy::if_not_else,
|
22 |
clippy::items_after_statements,
|
15 |
clippy::cast_sign_loss,
|
16 |
clippy::if_not_else,
|
17 |
clippy::items_after_statements,
|
20 |
clippy::cast_sign_loss,
|
21 |
clippy::if_not_else,
|
22 |
clippy::items_after_statements,
|
15 |
clippy::cast_sign_loss,
|
16 |
clippy::if_not_else,
|
17 |
clippy::items_after_statements,
|
17 |
)] // from https://github.com/rust-unofficial/patterns/blob/master/anti_patterns/deny-warnings.md
|
18 |
#![allow(clippy::if_not_else, clippy::too_many_lines, clippy::let_underscore_drop)]
|
9 |
#![allow(clippy::match_bool)]
|
10 |
#![allow(clippy::if_not_else)]
|
11 |
#![allow(clippy::module_name_repetitions)]
|
9 |
#![allow(clippy::match_bool)]
|
10 |
#![allow(clippy::if_not_else)]
|
11 |
#![allow(clippy::module_name_repetitions)]
|
19 |
clippy::large_enum_variant,
|
20 |
clippy::if_not_else,
|
21 |
clippy::inline_always,
|
27 |
clippy::similar_names,
|
28 |
clippy::if_not_else,
|
29 |
clippy::module_name_repetitions,
|
18 |
#![allow(
|
19 |
clippy::if_not_else,
|
20 |
clippy::type_complexity,
|
59 |
clippy::expl_impl_clone_on_copy,
|
60 |
clippy::if_not_else,
|
61 |
clippy::items_after_statements,
|
40 |
clippy::doc_markdown,
|
41 |
clippy::if_not_else,
|
42 |
clippy::missing_errors_doc,
|
5 |
#![allow(clippy::collapsible_if)]
|
6 |
#![allow(clippy::if_not_else)]
|
7 |
// match_same_arms is buggy, doesn't notice differences due to match arm order
|
10 |
// conditional expression is required to ensure this.
|
11 |
#![allow(clippy::if_not_else)]
|
12 |
// You generally need to have read MSDN to make sense of the unsafe here.
|
14 |
)]
|
15 |
#![allow(clippy::if_not_else, clippy::module_name_repetitions)]
|
16 |
#![cfg_attr(doc, warn(rustdoc::all))]
|
14 |
clippy::module_name_repetitions, // often hidden modules and reexported
|
15 |
clippy::if_not_else, // `... != 0` is a positive condition
|
16 |
clippy::multiple_crate_versions, // not useful
|
14 |
clippy::module_name_repetitions, // often hidden modules and reexported
|
15 |
clippy::if_not_else, // `... != 0` is a positive condition
|
16 |
clippy::multiple_crate_versions, // not useful
|
23 |
clippy::module_name_repetitions, // often hidden modules and reexported
|
24 |
clippy::if_not_else, // `... != 0` is a positive condition
|
25 |
clippy::multiple_crate_versions, // not useful
|
14 |
clippy::module_name_repetitions, // often hidden modules and reexported
|
15 |
clippy::if_not_else, // `... != 0` is a positive condition
|
16 |
clippy::multiple_crate_versions, // not useful
|
251 |
// Clippy is a bit odd here, so we'll just allow it
|
252 |
#![allow(clippy::if_not_else)]
|
60 |
#![allow(clippy::doc_markdown)]
|
61 |
#![allow(clippy::if_not_else)]
|
62 |
#![warn(clippy::missing_const_for_fn)]
|
84 |
#![allow(
|
85 |
clippy::if_not_else,
|
86 |
clippy::missing_errors_doc,
|
2 |
#![warn(clippy::pedantic)]
|
3 |
#![allow(clippy::doc_markdown, clippy::if_not_else, clippy::non_ascii_literal)]
|
9 |
#![allow(clippy::pub_enum_variant_names)]
|
10 |
#![allow(clippy::if_not_else)]
|
11 |
#![allow(clippy::similar_names)]
|
158 |
#![allow(clippy::use_self)]
|
159 |
#![allow(clippy::if_not_else)]
|
160 |
#![allow(clippy::must_use_candidate)]
|
23 |
clippy::empty_loop,
|
24 |
clippy::if_not_else,
|
25 |
clippy::missing_errors_doc,
|
43 |
#![allow(
|
44 |
clippy::if_not_else,
|
45 |
clippy::module_name_repetitions,
|
232 |
clippy::doc_markdown,
|
233 |
clippy::if_not_else,
|
234 |
clippy::must_use_candidate,
|
1 |
#![allow(clippy::needless_pass_by_value, clippy::if_not_else)]
|
4 |
#![allow(
|
5 |
clippy::if_not_else,
|
6 |
clippy::needless_pass_by_value,
|
10 |
#![allow(clippy::match_bool)]
|
11 |
#![allow(clippy::if_not_else)]
|
12 |
#![allow(clippy::module_name_repetitions)]
|
2 |
#![warn(clippy::pedantic)]
|
3 |
#![allow(clippy::doc_markdown, clippy::if_not_else, clippy::non_ascii_literal)]
|
92 |
clippy::expl_impl_clone_on_copy,
|
93 |
clippy::if_not_else,
|
94 |
clippy::many_single_char_names,
|
66 |
clippy::expl_impl_clone_on_copy,
|
67 |
clippy::if_not_else,
|
68 |
clippy::many_single_char_names,
|
8 |
#![allow(clippy::explicit_iter_loop)]
|
9 |
#![allow(clippy::if_not_else)]
|
10 |
#![allow(clippy::inline_always)]
|
17 |
clippy::unused_self,
|
18 |
clippy::if_not_else,
|
19 |
clippy::manual_let_else
|
338 |
clippy::enum_glob_use,
|
339 |
clippy::if_not_else,
|
340 |
clippy::integer_division,
|
10 |
clippy::float_cmp,
|
11 |
clippy::if_not_else,
|
12 |
clippy::module_name_repetitions,
|
339 |
clippy::enum_glob_use,
|
340 |
clippy::if_not_else,
|
341 |
clippy::integer_division,
|
331 |
clippy::enum_glob_use,
|
332 |
clippy::if_not_else,
|
333 |
clippy::integer_division,
|
84 |
#![warn(clippy::pedantic)]
|
85 |
#![allow(clippy::if_not_else, clippy::too_many_lines)]
|
86 |
#![warn(missing_docs)]
|
130 |
clippy::checked_conversions,
|
131 |
clippy::if_not_else,
|
132 |
clippy::manual_assert,
|
78 |
clippy::cast_lossless,
|
79 |
clippy::if_not_else,
|
80 |
clippy::manual_assert,
|
43 |
clippy::module_name_repetitions,
|
44 |
clippy::if_not_else,
|
45 |
clippy::needless_pass_by_value,
|
24 |
clippy::module_name_repetitions, // We have private reexported modules for convenience, so no.
|
25 |
clippy::if_not_else, // Dumb lint. Sometimes it's more readable to have ifn't than to swap if and else.
|
26 |
clippy::doc_markdown, // It reacted to "OSDev", bruh?
|
265 |
clippy::explicit_auto_deref,
|
266 |
clippy::if_not_else,
|
267 |
clippy::inherent_to_string,
|
265 |
clippy::empty_enum,
|
266 |
clippy::if_not_else,
|
267 |
clippy::items_after_statements,
|
264 |
clippy::empty_enum,
|
265 |
clippy::if_not_else,
|
266 |
clippy::items_after_statements,
|
252 |
empty_enum,
|
253 |
if_not_else,
|
254 |
items_after_statements,
|
31 |
clippy::doc_markdown,
|
32 |
clippy::if_not_else,
|
33 |
clippy::indexing_slicing,
|
20 |
clippy::fn_params_excessive_bools,
|
21 |
clippy::if_not_else,
|
22 |
clippy::items_after_statements,
|
3 |
#![allow(
|
4 |
clippy::if_not_else,
|
5 |
clippy::multiple_crate_versions,
|
3 |
clippy::doc_markdown,
|
4 |
clippy::if_not_else,
|
5 |
clippy::items_after_statements,
|
3 |
clippy::doc_markdown,
|
4 |
clippy::if_not_else,
|
5 |
clippy::items_after_statements,
|
30 |
clippy::doc_markdown,
|
31 |
clippy::if_not_else,
|
32 |
clippy::inline_always,
|
1 |
#![allow(
|
2 |
clippy::if_not_else,
|
3 |
clippy::similar_names,
|