141 |
for (k, r) in iter {
|
142 |
#[allow(clippy::single_match_else)]
|
143 |
match r {
|
41 |
#[allow(clippy::single_match_else)]
|
42 |
impl<T, U, V> Iterator for ThreeTupleIter<T, U, V>
|
39 |
#[allow(clippy::single_match_else)]
|
40 |
impl<T, U> Iterator for TwoTupleIter<T, U>
|
51 |
#[allow(clippy::option_if_let_else, clippy::single_match_else)]
|
52 |
fn main() {
|
23 |
#[must_use]
|
24 |
#[allow(clippy::single_match_else)] // This advises less clear code
|
25 |
pub fn parse_kvp_file(input: &str, symbols: KVPSymbols) -> KVPFile<'_> {
|
47 |
/// It requires the id returned when the volume was inserted
|
48 |
#[allow(clippy::single_match_else)] // false-positive
|
49 |
pub fn remove(&mut self, VolumeHandle(node_index): VolumeHandle) {
|
27 |
fn parse_version(path: &Path) -> Result<(String, String), Error> {
|
28 |
#[allow(clippy::single_match_else)]
|
29 |
let filename = match path.file_stem() {
|
293 |
DryRunMessage::Default => {
|
294 |
#[allow(clippy::single_match_else)]
|
295 |
match total_size_from_cache {
|
199 |
Ok(frame) => frame,
|
200 |
#[allow(clippy::single_match_else)]
|
201 |
Err(e) => match (*self.on_surface_error)(e) {
|
259 |
Ok(frame) => frame,
|
260 |
#[allow(clippy::single_match_else)]
|
261 |
Err(e) => match (*self.configuration.on_surface_error)(e) {
|
92 |
}
|
93 |
#[allow(clippy::single_match_else)]
|
94 |
pub fn serialize_i8(value: i8, buf: &mut [u8]) -> Result<usize, Error> {
|
226 |
#[allow(clippy::single_match_else)] // Clippy bug
|
227 |
match cr.handle_message(msg, conn) {
|
36 |
/// `Debug` format instead.
|
37 |
#[allow(clippy::single_match_else)]
|
38 |
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
|
58 |
#[allow(clippy::single_match_else)]
|
59 |
match check_profile_name(config, &name) {
|
33 |
#[allow(clippy::single_match_else)]
|
34 |
match args.sub {
|
13 |
#[allow(clippy::single_match_else)] // To match Option's syntax
|
14 |
impl<T> OptionExt<T> for Option<T> {
|
53 |
#[allow(clippy::single_match_else)]
|
54 |
async fn run() -> Result<()> {
|
53 |
#[allow(clippy::single_match_else)]
|
54 |
async fn run() -> Result<()> {
|
916 |
};
|
917 |
#[allow(clippy::single_match_else, clippy::unnested_or_patterns)]
|
918 |
let (response, identity, future) = match cached {
|
742 |
loop {
|
743 |
#[allow(clippy::single_match_else)] // clarity
|
744 |
let c = match self.iter.next() {
|
72 |
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
|
73 |
#[allow(clippy::single_match_else)]
|
74 |
match self.pool.get() {
|
121 |
/// Resolves the license by scrapping the Dart pub website and then the license in github if available.
|
122 |
#[allow(clippy::too_many_lines, clippy::single_match_else)]
|
123 |
async fn resolve_hosted_dependency<R: Retriever>(
|
134 |
// so we'll short circuit these ones.
|
135 |
#[allow(clippy::single_match_else)]
|
136 |
match declared_license.as_deref() {
|
60 |
/// host url
|
61 |
#[allow(clippy::single_match_else)]
|
62 |
pub fn host(host: &Uri) -> Docker {
|
353 |
// I sincerely think that the first match in this function is the most readable way to write it.
|
354 |
#[allow(clippy::single_match_else)]
|
355 |
fn choose_package_version<
|
754 |
/// This may be a top level or nested module.
|
755 |
#[allow(clippy::single_match_else)]
|
756 |
fn generate_module_code(&self, data: &RustModule) -> Result<String> {
|
56 |
// the first element must be root and is special
|
57 |
#[allow(clippy::single_match_else, clippy::wildcard_enum_match_arm)]
|
58 |
match reader_for_microxml.next() {
|
276 |
clippy::non_ascii_literal,
|
277 |
clippy::single_match_else
|
278 |
)]
|
491 |
_ if state.can_data() => {
|
492 |
#[allow(clippy::single_match_else)]
|
493 |
match path.last().and_then(|s| s.tabular.as_ref()) {
|
36 |
/// * `content` - A string slice containing a playlist
|
37 |
#[allow(clippy::single_match_else)]
|
38 |
pub fn decode(content: &str) -> Result<Vec<String>, Box<dyn Error>> {
|
840 |
/// indicating success or failure.
|
841 |
#[allow(clippy::single_match_else)]
|
842 |
fn download_file(mut ep_data: EpData, destination_path: PathBuf, mut max_retries: usize) -> PCMsg {
|
329 |
for item in visible.iter().skip(state.offset).take(end - start) {
|
330 |
#[allow(clippy::single_match_else)] // Keep same as List impl
|
331 |
let (x, y) = match self.start_corner {
|
89 |
}
|
90 |
#[allow(clippy::single_match_else)]
|
91 |
pub fn serialize_i8(value: i8, buf: &mut [u8]) -> Result<usize, Error> {
|
33 |
// allow single_match_else for now to support more type cases.
|
34 |
#[allow(clippy::single_match_else)]
|
35 |
let is_match = match &query_result {
|
32 |
if comp != fname {
|
33 |
#[allow(clippy::single_match_else)]
|
34 |
match tree.dirs.iter().position(|(dir, _tree)| dir == comp) {
|
281 |
fn build_dir(dirs: &[Dir], id: &str, dir: &mut PathBuf) {
|
282 |
#[allow(clippy::single_match_else)]
|
283 |
let cur_dir = match dirs.binary_search_by(|d| d.id.as_str().cmp(id)) {
|
187 |
#[allow(
|
188 |
clippy::single_match_else,
|
189 |
clippy::option_if_let_else,
|
14 |
#![allow(clippy::use_self)]
|
15 |
#![allow(clippy::single_match_else)]
|
16 |
#![allow(clippy::inline_always)]
|
2 |
#![warn(clippy::pedantic)]
|
3 |
#![allow(clippy::single_match_else)]
|
4 |
// Old example. Remove or update
|
116 |
clippy::too_many_lines,
|
117 |
clippy::single_match_else,
|
118 |
clippy::manual_let_else
|
116 |
option_if_let_else,
|
117 |
single_match_else,
|
118 |
type_complexity,
|
46 |
clippy::similar_names,
|
47 |
clippy::single_match_else,
|
48 |
clippy::struct_excessive_bools,
|
343 |
clippy::shadow_unrelated,
|
344 |
clippy::single_match_else,
|
345 |
clippy::too_many_lines,
|
14 |
#![allow(clippy::use_self)]
|
15 |
#![allow(clippy::single_match_else)]
|
16 |
#![allow(clippy::inline_always)]
|
62 |
)]
|
63 |
#![allow(clippy::doc_markdown, clippy::inline_always, clippy::single_match_else)]
|
1 |
#![allow(clippy::single_match_else)]
|
2 |
#![allow(clippy::module_name_repetitions)]
|
3 |
#![allow(clippy::single_match_else)]
|
60 |
#![allow(clippy::too_many_lines)]
|
61 |
#![allow(clippy::single_match_else)]
|
62 |
// Would be nice to not need this, thanks macho module
|
31 |
#![allow(clippy::too_many_lines)]
|
32 |
#![allow(clippy::single_match_else)]
|
5 |
#![allow(clippy::manual_range_contains)]
|
6 |
#![allow(clippy::single_match_else)]
|
7 |
use quote::ToTokens;
|
6 |
clippy::expect_fun_call,
|
7 |
clippy::single_match_else,
|
8 |
clippy::match_same_arms
|
19 |
#![allow(clippy::cognitive_complexity)] // This is dumb
|
20 |
#![allow(clippy::single_match_else)] // Future expansion
|
21 |
#![allow(clippy::too_many_lines)] // This is also dumb
|
4 |
#![allow(clippy::let_underscore_drop)]
|
5 |
#![allow(clippy::single_match_else)]
|
58 |
clippy::must_use_candidate,
|
59 |
clippy::single_match_else,
|
60 |
clippy::single_match,
|
1 |
// crate-specific exceptions:
|
2 |
#![allow(clippy::single_match_else)]
|
3 |
#![warn(clippy::pedantic)]
|
4 |
#![allow(clippy::single_match_else)]
|
5 |
// All items are not public APIs.
|
6 |
clippy::similar_names,
|
7 |
clippy::single_match_else,
|
8 |
clippy::struct_excessive_bools,
|
13 |
#![allow(clippy::use_self)]
|
14 |
#![allow(clippy::single_match_else)]
|
15 |
#![allow(clippy::inline_always)]
|
13 |
#![allow(clippy::use_self)]
|
14 |
#![allow(clippy::single_match_else)]
|
15 |
#![allow(clippy::inline_always)]
|
11 |
clippy::redundant_else,
|
12 |
clippy::single_match_else,
|
13 |
clippy::too_many_lines,
|
72 |
clippy::similar_names,
|
73 |
clippy::single_match_else,
|
74 |
clippy::struct_excessive_bools,
|
32 |
clippy::similar_names,
|
33 |
clippy::single_match_else,
|
34 |
clippy::struct_excessive_bools,
|
22 |
clippy::similar_names,
|
23 |
clippy::single_match_else,
|
24 |
clippy::struct_excessive_bools,
|
22 |
clippy::single_match,
|
23 |
clippy::single_match_else,
|
24 |
clippy::too_many_arguments,
|
110 |
clippy::needless_doctest_main,
|
111 |
clippy::single_match_else
|
112 |
)]
|
91 |
#![allow(clippy::match_bool)]
|
92 |
#![allow(clippy::single_match_else)]
|
93 |
#![allow(clippy::unseparated_literal_suffix)]
|
10 |
clippy::non_ascii_literal,
|
11 |
clippy::single_match_else,
|
12 |
clippy::struct_excessive_bools,
|
229 |
clippy::needless_pass_by_value,
|
230 |
clippy::single_match_else
|
231 |
)]
|
3 |
clippy::option_if_let_else,
|
4 |
clippy::single_match_else
|
5 |
)]
|
57 |
clippy::cast_possible_truncation,
|
58 |
clippy::single_match_else,
|
59 |
clippy::redundant_pub_crate,
|
57 |
clippy::cast_possible_truncation,
|
58 |
clippy::single_match_else,
|
59 |
clippy::redundant_pub_crate,
|
9 |
clippy::single_match,
|
10 |
clippy::single_match_else
|
11 |
)]
|
7 |
clippy::single_match,
|
8 |
clippy::single_match_else
|
9 |
)]
|
1 |
#![allow(clippy::module_name_repetitions, clippy::single_match_else)]
|
11 |
clippy::must_use_candidate,
|
12 |
clippy::single_match_else,
|
13 |
clippy::too_many_lines,
|
16 |
#![cfg_attr(not(test), deny(warnings, clippy::all, clippy::pedantic, clippy::cargo))]
|
17 |
#![allow(clippy::single_match_else)]
|
18 |
#![deny(unsafe_code, missing_docs)]
|
130 |
clippy::upper_case_acronyms,
|
131 |
clippy::single_match_else,
|
132 |
clippy::similar_names,
|
1 |
#![deny(clippy::all, clippy::pedantic)]
|
2 |
#![allow(clippy::single_match_else, clippy::module_name_repetitions)]
|
147 |
clippy::shadow_unrelated,
|
148 |
clippy::single_match_else,
|
149 |
clippy::too_many_lines,
|
158 |
clippy::shadow_unrelated,
|
159 |
clippy::single_match_else,
|
160 |
clippy::too_many_lines,
|
157 |
clippy::shadow_unrelated,
|
158 |
clippy::single_match_else,
|
159 |
clippy::too_many_lines,
|
74 |
clippy::needless_pass_by_value, clippy::redundant_field_names,
|
75 |
clippy::redundant_pattern, clippy::single_match_else,
|
76 |
clippy::type_repetition_in_bounds,
|
10 |
clippy::must_use_candidate,
|
11 |
clippy::single_match_else,
|
12 |
clippy::too_many_lines,
|
36 |
#![allow(clippy::match_wild_err_arm)]
|
37 |
#![allow(clippy::single_match_else)]
|
38 |
#![allow(unused_unsafe)]
|
46 |
clippy::redundant_else,
|
47 |
clippy::single_match_else
|
48 |
)]
|
15 |
clippy::similar_names,
|
16 |
clippy::single_match_else,
|
17 |
clippy::too_many_lines,
|
7 |
clippy::module_name_repetitions,
|
8 |
clippy::single_match_else,
|
9 |
clippy::too_many_arguments,
|
21 |
// Allow let x = match option() { } blocks
|
22 |
#![allow(clippy::single_match_else)]
|
38 |
clippy::similar_names, // Sometimes prefer names that are similar. Consider removing.
|
39 |
clippy::single_match_else, // Match statement can be more readable.
|
40 |
clippy::type_repetition_in_bounds, // Frequent false positives
|
14 |
#![allow(clippy::use_self)]
|
15 |
#![allow(clippy::single_match_else)]
|
16 |
#![allow(clippy::unnested_or_patterns)]
|
3 |
clippy::must_use_candidate,
|
4 |
clippy::single_match_else
|
5 |
)]
|
12 |
#![allow(clippy::missing_errors_doc)]
|
13 |
#![allow(clippy::single_match_else)]
|
52 |
clippy::use_self,
|
53 |
clippy::single_match_else,
|
54 |
clippy::must_use_candidate,
|
3 |
#![allow(clippy::similar_names)]
|
4 |
#![allow(clippy::single_match_else)]
|
5 |
#![allow(clippy::too_many_lines)]
|
2 |
#![allow(clippy::similar_names)]
|
3 |
#![allow(clippy::single_match_else)]
|
4 |
#![allow(clippy::too_many_lines)]
|
80 |
clippy::needless_doctest_main,
|
81 |
clippy::single_match_else,
|
82 |
clippy::wildcard_imports
|
121 |
option_if_let_else,
|
122 |
single_match_else,
|
123 |
type_complexity,
|
54 |
clippy::similar_names,
|
55 |
clippy::single_match_else,
|
56 |
clippy::struct_excessive_bools,
|
46 |
clippy::similar_names,
|
47 |
clippy::single_match_else,
|
48 |
clippy::struct_excessive_bools,
|
36 |
//! ```
|
37 |
#![allow(clippy::single_match_else)]
|
38 |
#![cfg_attr(not(feature = "std"), no_std)]
|
350 |
clippy::shadow_unrelated,
|
351 |
clippy::single_match_else,
|
352 |
clippy::too_many_lines,
|
15 |
clippy::similar_names,
|
16 |
clippy::single_match_else,
|
17 |
clippy::too_many_lines,
|
340 |
shadow_unrelated,
|
341 |
single_match_else,
|
342 |
stutter,
|
351 |
clippy::shadow_unrelated,
|
352 |
clippy::single_match_else,
|
353 |
clippy::too_many_lines,
|
312 |
shadow_unrelated,
|
313 |
single_match_else,
|
314 |
use_self,
|
325 |
shadow_unrelated,
|
326 |
single_match_else,
|
327 |
use_self,
|
343 |
clippy::shadow_unrelated,
|
344 |
clippy::single_match_else,
|
345 |
clippy::too_many_lines,
|
37 |
#![allow(clippy::single_match_else)]
|
138 |
clippy::redundant_else,
|
139 |
clippy::single_match_else,
|
140 |
// code is acceptable
|
85 |
clippy::redundant_else,
|
86 |
clippy::single_match_else,
|
87 |
// code is acceptable
|
142 |
// NOTE(eddyb) ignored for readability (`match` used when `if let` is too long).
|
143 |
clippy::single_match_else,
|
12 |
clippy::similar_names,
|
13 |
clippy::single_match_else,
|
14 |
clippy::too_many_lines,
|
283 |
clippy::similar_names,
|
284 |
clippy::single_match_else,
|
285 |
clippy::too_many_arguments,
|
273 |
clippy::similar_names,
|
274 |
clippy::single_match_else,
|
275 |
clippy::too_many_lines,
|
269 |
clippy::similar_names,
|
270 |
clippy::single_match_else,
|
271 |
clippy::unseparated_literal_suffix,
|
257 |
similar_names,
|
258 |
single_match_else,
|
259 |
unseparated_literal_suffix,
|
5 |
clippy::default_trait_access,
|
6 |
clippy::single_match_else,
|
7 |
clippy::module_name_repetitions,
|
5 |
clippy::default_trait_access,
|
6 |
clippy::single_match_else,
|
7 |
clippy::module_name_repetitions,
|
10 |
#![allow(clippy::single_match)]
|
11 |
#![allow(clippy::single_match_else)]
|
12 |
#![allow(clippy::too_many_arguments)]
|
10 |
clippy::range_plus_one,
|
11 |
clippy::single_match_else,
|
12 |
clippy::too_many_lines,
|
9 |
clippy::range_plus_one,
|
10 |
clippy::single_match_else,
|
11 |
clippy::too_many_lines,
|
10 |
clippy::range_plus_one,
|
11 |
clippy::single_match_else,
|
12 |
clippy::too_many_lines,
|
9 |
clippy::range_plus_one,
|
10 |
clippy::single_match_else,
|
11 |
clippy::too_many_lines,
|
226 |
clippy::similar_names,
|
227 |
clippy::single_match_else,
|
228 |
clippy::too_many_lines,
|
236 |
clippy::range_plus_one,
|
237 |
clippy::single_match_else,
|
238 |
clippy::too_many_lines,
|
1 |
#![recursion_limit = "256"]
|
2 |
#![allow(clippy::needless_pass_by_value, clippy::single_match_else)]
|
10 |
clippy::ptr_as_ptr,
|
11 |
clippy::single_match_else,
|
12 |
clippy::too_many_lines,
|
33 |
clippy::single_match,
|
34 |
clippy::single_match_else,
|
35 |
clippy::too_many_arguments,
|
6 |
clippy::single_match,
|
7 |
clippy::single_match_else
|
8 |
)]
|
2 |
#![warn(clippy::pedantic, clippy::cargo)]
|
3 |
#![allow(clippy::multiple_crate_versions, clippy::single_match_else)]
|
4 |
#![cfg_attr(feature = "strict", deny(warnings))]
|
36 |
clippy::single_match,
|
37 |
clippy::single_match_else
|
38 |
)]
|
16 |
// `match` can look better than `if` + `else`
|
17 |
#![allow(clippy::single_match_else, clippy::match_bool)]
|
18 |
// Some false positives
|