26 |
{
|
27 |
#[allow(clippy::manual_map)]
|
28 |
match self {
|
377 |
for include_cpp in self.get_autocxxes_mut() {
|
378 |
#[allow(clippy::manual_map)] // because of dyn shenanigans
|
379 |
let dep_recorder: Option<Box<dyn RebuildDependencyRecorder>> = match &inner_dep_recorder
|
451 |
#[inline]
|
452 |
#[allow(clippy::manual_map)]
|
453 |
fn find_qr(one: &Point, two: &Point, three: &Point, module_size: f64) -> Option<QRLocation> {
|
310 |
//config_parser contains automatically generated code. No sense in being too strict.
|
311 |
#[allow(clippy::manual_map)]
|
312 |
#[allow(clippy::match_single_binding)]
|
72 |
pub fn base(&self) -> Option<Source> {
|
73 |
#[allow(clippy::manual_map)]
|
74 |
if let Some(git) = self.git.as_ref() {
|
88 |
fn cause(&self) -> Option<&dyn StdError> {
|
89 |
#[allow(clippy::manual_map)]
|
90 |
match self.cause {
|
99 |
// writing this as current_chunk.map(...) makes the logic less obvious
|
100 |
#[allow(clippy::manual_map)]
|
101 |
// The stream ran out, so check if we have a pending chunk
|
217 |
// writing this as current_chunk.map(...) makes the logic less obvious
|
218 |
#[allow(clippy::manual_map)]
|
219 |
// The stream ran out, so check if we have a pending chunk
|
80 |
#[allow(clippy::manual_map)] // cleaner as-is
|
81 |
let status = if e.cause().is::<ThrottledError>() {
|
1059 |
#[allow(clippy::manual_map)]
|
1060 |
if !ignore {
|
32 |
#[allow(clippy::manual_map)]
|
33 |
if let Some(capture) = SERIES_REGEX.captures(url.as_ref()) {
|
3 |
#[allow(clippy::manual_map)]
|
4 |
pub(crate) fn normalize_pair(symbol: &str) -> Option<String> {
|
309 |
// NOTE: vec cannot be captured by closure if it's also mutably borrowed.
|
310 |
#[allow(clippy::manual_map)]
|
311 |
match self.append_clone_to_vec(&mut vec) {
|
708 |
// NOTE: vec cannot be captured by closure if it's also mutably borrowed.
|
709 |
#[allow(clippy::manual_map)]
|
710 |
match self.append_clone_to_vec(&mut vec) {
|
206 |
// NOTE: vec cannot be captured by closure if it's also mutably borrowed.
|
207 |
#[allow(clippy::manual_map)]
|
208 |
match self.append_copy_to_vec(&mut vec) {
|
587 |
// NOTE: vec cannot be captured by closure if it's also mutably borrowed.
|
588 |
#[allow(clippy::manual_map)]
|
589 |
match self.append_copy_to_vec(&mut vec) {
|
437 |
// NOTE: vec cannot be captured by closure if it's also mutably borrowed.
|
438 |
#[allow(clippy::manual_map)]
|
439 |
match self.append_copy_to_vec(&mut vec) {
|
733 |
// NOTE: vec cannot be captured by closure if it's also mutably borrowed.
|
734 |
#[allow(clippy::manual_map)]
|
735 |
match self.append_cloned_to_vec(&mut vec) {
|
326 |
// TODO(demurgos): Remove this clippy exception once `Option::map` is const-compatible (or clippy stop complaining)
|
327 |
#[allow(clippy::manual_map)]
|
328 |
if let Some(named) = self.named.as_ref() {
|
150 |
#[allow(clippy::manual_map)]
|
151 |
fn sockaddr_to_socketaddr(s: SockaddrStorage) -> Option<SocketAddr> {
|
464 |
/// Helper function to convert `Option<Arc<T>>` to `Option<Arc<dyn Any>>`.
|
465 |
#[allow(clippy::manual_map)]
|
466 |
pub fn into_any_arc<T: Any + Send + Sync>(
|
152 |
// See https://github.com/rust-lang/rust/issues/94241
|
153 |
#[allow(clippy::manual_map)]
|
154 |
let closest_edge_option = match peeked_edge {
|
651 |
#[allow(clippy::manual_map)] // It's wrong
|
652 |
fn to_owned<'a>(sym_res: Option<SymbolResult<'_>>, vec: &'a mut Vec<SymResTextPart<'a>>) -> Option<SymbolResult<'a>> {
|
108 |
// The "readable" version is less readable, especially since it requires manual type assertions.
|
109 |
#[allow(clippy::manual_map)]
|
110 |
fn source(&self) -> Option<&(dyn Error + 'static)> {
|
311 |
pub fn get_character(&self, id: &str) -> Option<CharacterValue> {
|
312 |
#[allow(clippy::manual_map)]
|
313 |
if let Some(h) = self.humans.get(id) {
|
135 |
impl From<ThreadAnyError> for ThreadError {
|
136 |
#[allow(clippy::manual_map)] // clarity / false positive ?
|
137 |
fn from(f: ThreadAnyError) -> Self {
|
45 |
impl<const BUFSIZE: usize, const NCHAN: usize> SchedulerData<BUFSIZE, NCHAN> {
|
46 |
#[allow(clippy::manual_map)]
|
47 |
#[allow(clippy::too_many_arguments)]
|
96 |
#[allow(clippy::manual_map)]
|
97 |
#[allow(clippy::too_many_arguments)]
|
136 |
#[allow(clippy::too_many_arguments)]
|
137 |
#[allow(clippy::manual_map)]
|
138 |
pub fn from_data(
|
387 |
#[allow(clippy::manual_map)] // Complex if/let is better as is.
|
388 |
fn or_i(l: Self, r: Self) -> Result<Self, types::ErrorKind> {
|
353 |
#[allow(clippy::manual_map)]
|
354 |
let top = match sub_matches.value_of("TOP") {
|
377 |
#[allow(clippy::manual_map)]
|
378 |
let program_filter = match sub_matches.value_of("PROGRAM_FILTER") {
|
383 |
#[allow(clippy::manual_map)]
|
384 |
let tty_filter = match sub_matches.value_of("TTY_FILTER") {
|
389 |
#[allow(clippy::manual_map)]
|
390 |
let pid_filter = match sub_matches.value_of("PID_FILTER") {
|
448 |
// lit(left) + lit(right) => lit(left + right)
|
449 |
#[allow(clippy::manual_map)]
|
450 |
let out = match op {
|
1715 |
Ok(
|
1716 |
#[allow(clippy::manual_map)]
|
1717 |
if let (Some(ak), Some(bk)) = (
|
463 |
/// Helper function to convert Option<Arc<T>> to Option<Arc<dyn Any>>.
|
464 |
#[allow(clippy::manual_map)]
|
465 |
pub fn into_any_arc<T: Any + Send + Sync>(
|
84 |
) -> Result<ReCaptcha<V>, RegexError> {
|
85 |
#[allow(clippy::manual_map)]
|
86 |
let html_key = match html_key {
|
101 |
) -> Result<ReCaptcha<V>, RegexError> {
|
102 |
#[allow(clippy::manual_map)]
|
103 |
let html_key = match html_key {
|
84 |
.filter_map(|agent| {
|
85 |
#[allow(clippy::manual_map)]
|
86 |
match agent.solution {
|
395 |
#[allow(clippy::manual_map)] // Complex if/let is better as is.
|
396 |
fn or_i(l: Self, r: Self) -> Result<Self, types::ErrorKind> {
|
133 |
{
|
134 |
#[allow(clippy::manual_map)] // reduce compiler IR, I think!
|
135 |
match self
|
40 |
#[inline]
|
41 |
#[allow(clippy::manual_map)]
|
42 |
fn indices_of_passenger(
|
24 |
#[allow(clippy::manual_map)]
|
25 |
/// Parses a simple cell reference.
|
94 |
#[allow(clippy::manual_map)]
|
95 |
/// Parses a cell-range.
|
161 |
#[allow(clippy::manual_map)]
|
162 |
/// Parses a column range.
|
209 |
#[allow(clippy::manual_map)]
|
210 |
/// Parses a row range.
|
47 |
#[allow(clippy::manual_map)]
|
48 |
fn unpack_value(value: Value<'v>) -> Option<Self> {
|
1011 |
/// ```
|
1012 |
#[allow(clippy::manual_map)]
|
1013 |
#[inline(always)]
|
93 |
};
|
94 |
#[allow(clippy::manual_map)]
|
95 |
if let Some(ref s) = self.content.get(*first_key..second_key) {
|
574 |
}
|
575 |
#[allow(clippy::manual_map)]
|
576 |
match self.lines.get(fo_beg) {
|
905 |
fn fo_to_fo0(dt_opt: &DateTimeLOpt) -> DateTimeLOpt {
|
906 |
#[allow(clippy::manual_map)]
|
907 |
match dt_opt {
|
515 |
/// this header format.
|
516 |
#[allow(clippy::manual_map)]
|
517 |
pub fn username_bytes(&self) -> Option<&[u8]> {
|
558 |
/// this header format.
|
559 |
#[allow(clippy::manual_map)]
|
560 |
pub fn groupname_bytes(&self) -> Option<&[u8]> {
|
90 |
#[inline]
|
91 |
#[allow(clippy::manual_map)]
|
92 |
pub fn create(&self,typeid:u16)->Option<SharedPtr<dyn ISerde>>{
|
2 |
#![cfg_attr(not(debug_assertions), allow(dead_code))]
|
3 |
#![allow(clippy::manual_map)]
|
12 |
clippy::unwrap_or_else_default,
|
13 |
clippy::manual_map,
|
14 |
clippy::unused_unit
|
73 |
clippy::items_after_statements,
|
74 |
clippy::manual_map,
|
75 |
clippy::match_bool,
|
2 |
#![deny(clippy::all)]
|
3 |
#![allow(clippy::manual_map)]
|
88 |
clippy::cast_sign_loss,
|
89 |
clippy::manual_map, // Option::map is not const
|
90 |
clippy::module_name_repetitions,
|
104 |
clippy::items_after_statements,
|
105 |
clippy::manual_map, // https://github.com/rust-lang/rust-clippy/issues/7820
|
106 |
clippy::missing_errors_doc,
|
45 |
#![allow(clippy::needless_lifetimes)]
|
46 |
#![allow(clippy::manual_map)]
|
47 |
#![allow(clippy::bool_comparison)]
|
1 |
#![allow(clippy::manual_map)]
|
2 |
#![allow(clippy::manual_unwrap_or)]
|
3 |
#![allow(clippy::manual_map)]
|
4 |
use crate::api::grpc::google::cloud::speechtotext::v1::RecognitionConfig as GrpcRecognitionConfig;
|
2 |
#![allow(clippy::manual_unwrap_or)]
|
3 |
#![allow(clippy::manual_map)]
|
4 |
use crate::api::grpc::google::cloud::speechtotext::v1p1beta1::SpeechAdaptation as GrpcSpeechAdaptation;
|
4 |
//! this client is easily cloneable.
|
5 |
#![allow(clippy::manual_map)]
|
6 |
use crate::api::grpc::google::cloud::dialogflow::v2beta1::{
|
4 |
//! this client is not cloneable.
|
5 |
#![allow(clippy::manual_map)]
|
6 |
use crate::api::grpc::google::cloud::dialogflow::v2beta1::{
|
1 |
//! Speech-to-text recognizer module - v1 STT API.
|
2 |
#![allow(clippy::manual_map)]
|
3 |
use crate::api::grpc::google::cloud::speechtotext::v1::{
|
16 |
// all the other code below it must be identical!
|
17 |
#![allow(clippy::manual_map)]
|
18 |
use crate::api::grpc::google::cloud::speechtotext::v1p1beta1::{
|
59 |
// hashbrown does this to avoid LLVM IR bloat in a few places.
|
60 |
#![allow(clippy::manual_map)]
|
280 |
#![allow(clippy::manual_map)]
|
281 |
#![cfg_attr(not(feature = "std"), no_std)]
|
33 |
clippy::redundant_else,
|
34 |
clippy::manual_map,
|
35 |
clippy::missing_safety_doc,
|
11 |
#![allow(clippy::collapsible_if)]
|
12 |
#![allow(clippy::manual_map)]
|
13 |
#![allow(clippy::many_single_char_names)]
|
1 |
#![allow(clippy::tabs_in_doc_comments)]
|
2 |
#![allow(clippy::manual_map)]
|
3 |
#![warn(rust_2018_idioms)]
|
14 |
clippy::unreadable_literal,
|
15 |
clippy::manual_map, // is not an error
|
16 |
clippy::while_let_on_iterator, // is not an error
|
1 |
#![allow(clippy::manual_map)]
|
2 |
extern crate proc_macro;
|
2 |
#![allow(unused_doc_comments)] // /* TODO temporary because of err.rs */
|
3 |
#![allow(clippy::len_zero, clippy::should_implement_trait, clippy::manual_map, clippy::from_over_into)]
|
104 |
clippy::items_after_statements,
|
105 |
clippy::manual_map, // https://github.com/rust-lang/rust-clippy/issues/7820
|
106 |
clippy::missing_errors_doc,
|
73 |
clippy::items_after_statements,
|
74 |
clippy::manual_map,
|
75 |
clippy::match_bool,
|
27 |
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6797
|
28 |
clippy::manual_map,
|
29 |
clippy::match_like_matches_macro,
|
7 |
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6797
|
8 |
clippy::manual_map,
|
9 |
clippy::missing_panics_doc,
|
149 |
clippy::items_after_statements,
|
150 |
clippy::manual_map,
|
151 |
clippy::missing_panics_doc,
|
5 |
clippy::manual_find,
|
6 |
clippy::manual_map,
|
7 |
clippy::map_unwrap_or,
|
4 |
clippy::cast_possible_truncation,
|
5 |
clippy::manual_map,
|
6 |
clippy::map_unwrap_or,
|
5 |
clippy::manual_find,
|
6 |
clippy::manual_map,
|
7 |
clippy::map_unwrap_or,
|
4 |
clippy::cast_possible_truncation,
|
5 |
clippy::manual_map,
|
6 |
clippy::map_unwrap_or,
|
12 |
#![allow(clippy::collapsible_if)]
|
13 |
#![allow(clippy::manual_map)]
|
14 |
#![allow(clippy::many_single_char_names)]
|
6 |
#![no_std]
|
7 |
#![allow(clippy::manual_map)]
|
7 |
clippy::unnecessary_unwrap,
|
8 |
clippy::manual_map
|
9 |
)]
|
48 |
clippy::wrong_self_convention,
|
49 |
clippy::manual_map,
|
50 |
clippy::identity_op,
|
11 |
clippy::needless_range_loop,
|
12 |
clippy::manual_map,
|
13 |
clippy::map_entry
|
2 |
#![allow(clippy::or_fun_call)]
|
3 |
#![allow(clippy::manual_map)]
|
4 |
#![deny(missing_docs)]
|