278 |
#[allow(clippy::needless_collect)]
|
279 |
{
|
543 |
/// Compute the intersection of two sets of events described by OffsetMaps
|
544 |
#[allow(clippy::needless_collect)]
|
545 |
pub fn intersection_with(&mut self, other: &OffsetMap) {
|
516 |
/// Compute the intersection of two sets of events described by OffsetMaps
|
517 |
#[allow(clippy::needless_collect)]
|
518 |
pub fn intersection_with(&mut self, other: &OffsetMap) {
|
149 |
let mut type_vars = HashMap::new();
|
150 |
#[allow(clippy::needless_collect)] // Not needless, used for size effects
|
151 |
let parameter_types: Vec<_> = parameters
|
416 |
#[allow(clippy::needless_collect)]
|
417 |
let chunked = records
|
814 |
#[allow(clippy::needless_collect)]
|
815 |
let tokens: Vec<_> = parse_ansi(text).collect();
|
35 |
impl Parser {
|
36 |
#[allow(clippy::needless_collect)] // TODO
|
37 |
pub fn new(tokens: Vec<Token>, raw: Option<String>, file_name: String) -> Parser {
|
87 |
#[allow(clippy::needless_collect)]
|
88 |
fn _num_on(steps: Vec<(bool, Cuboid)>) -> i64 {
|
355 |
// Clippy isn't smart enough to understand dropping mutability
|
356 |
#[allow(clippy::needless_collect)]
|
357 |
fn test_intern_values(values: &[u64]) {
|
364 |
// Clippy isn't smart enough to understand dropping mutability
|
365 |
#[allow(clippy::needless_collect)]
|
366 |
fn test_intern_values(values: &[u64]) {
|
57 |
#[allow(clippy::needless_collect)] // we need to consume it to get the values
|
58 |
let lengths = lengths_iter
|
203 |
/// Returns an iterator of [`Page`].
|
204 |
#[allow(clippy::needless_collect)]
|
205 |
pub fn array_to_pages(
|
23 |
#[allow(clippy::needless_collect)]
|
24 |
let threads = (0..num_threads)
|
42 |
#[allow(clippy::needless_collect)] // we need the extra collect because the closure borrows extra_apis
|
43 |
pub(crate) fn convert_typedef_targets(
|
332 |
#[allow(clippy::needless_collect)]
|
333 |
fn into_iter(self) -> Self::IntoIter {
|
1642 |
// Clippy complains that the collect is not required, but that's wrong
|
1643 |
#[allow(clippy::needless_collect)]
|
1644 |
let utxos = (0..psbt.inputs.len())
|
283 |
#[test]
|
284 |
#[allow(clippy::needless_collect)]
|
285 |
fn test_blank_hash() {
|
263 |
/// predefined
|
264 |
#[allow(clippy::needless_collect)]
|
265 |
pub fn create_proof_batch_priority<E, C, P: ParameterSource<E>>(
|
282 |
#[allow(clippy::type_complexity)]
|
283 |
#[allow(clippy::needless_collect)]
|
284 |
fn create_proof_batch_priority_inner<E, C, P: ParameterSource<E>>(
|
120 |
if let Some(entries) = mappings.get(&path_str) {
|
121 |
#[allow(clippy::needless_collect)]
|
122 |
let vec: Vec<_> = entries.iter().map(|e| e.path()).collect();
|
500 |
if bevasset.is_directory(path) {
|
501 |
#[allow(clippy::needless_collect)]
|
502 |
let paths: Vec<_> = bevasset
|
90 |
#[allow(clippy::needless_collect)]
|
91 |
fn read_directory(
|
165 |
// within the loop.
|
166 |
#[allow(clippy::needless_collect)]
|
167 |
let clear_layers: Vec<i32> = tilemap.clear_layers.drain().collect();
|
393 |
#[allow(clippy::needless_collect)]
|
394 |
fn build(&self, cmd: &mut Commands, scorer: Entity, actor: Entity) {
|
552 |
#[allow(clippy::needless_collect)]
|
553 |
fn build(&self, cmd: &mut Commands, scorer: Entity, actor: Entity) {
|
683 |
#[allow(clippy::needless_collect)]
|
684 |
fn build(&self, cmd: &mut Commands, scorer: Entity, actor: Entity) {
|
961 |
#[allow(clippy::needless_collect)]
|
962 |
fn build(&self, cmd: &mut Commands, scorer: Entity, actor: Entity) {
|
189 |
let ant_pairs = self.vis_sel.get_ant_pairs(&self.corr_ctx.metafits_context);
|
190 |
#[allow(clippy::needless_collect)]
|
191 |
let baseline_flag_idxs: Vec<usize> = self
|
609 |
let inner_parser = clap::builder::EnumValueParser::<BumpLevel>::new();
|
610 |
#[allow(clippy::needless_collect)] // Erasing a lifetime
|
611 |
inner_parser.possible_values().map(|ps| {
|
430 |
let remote_id = remote.id.clone();
|
431 |
#[allow(clippy::needless_collect)]
|
432 |
let all_state_infoes = (*self.0)
|
1668 |
#[allow(clippy::needless_collect)]
|
1669 |
let m = m.iter().map(|entry| entry.0.clone()).collect::<Vec<_>>();
|
1529 |
Value::Object(o) => {
|
1530 |
#[allow(clippy::needless_collect)]
|
1531 |
let o = o.keys().cloned().collect::<Vec<_>>();
|
42 |
#[allow(clippy::needless_collect)]
|
43 |
let stream_paths = cfb
|
570 |
} else {
|
571 |
#[allow(clippy::needless_collect)]
|
572 |
let row = self.remove_row(from_row)
|
84 |
#[allow(clippy::needless_collect)] // collect is needed due to borrowing
|
85 |
/// Replaces the specified range in the chronofold with the given
|
30 |
let grid = create_grid();
|
31 |
#[allow(clippy::needless_collect)]
|
32 |
let ids = grid.traverse_by_rows().collect::<Vec<_>>();
|
97 |
#[allow(clippy::needless_collect)]
|
98 |
async fn received(
|
32 |
#[allow(clippy::needless_collect)]
|
33 |
pub fn execute(self) -> Status {
|
250 |
/// Accept a new block from network
|
251 |
#[allow(clippy::needless_collect)]
|
252 |
pub fn accept_block(
|
111 |
fn iterate_commands(cmd: clap::Command) -> Box<dyn Iterator<Item = clap::Command>> {
|
112 |
#[allow(clippy::needless_collect)]
|
113 |
let subcommands = cmd.get_subcommands().cloned().collect::<Vec<_>>();
|
333 |
#[allow(clippy::needless_collect)]
|
334 |
fn into_iter(self) -> Self::IntoIter {
|
568 |
#[allow(clippy::needless_collect)]
|
569 |
fn into_iter(self) -> Self::IntoIter {
|
303 |
#[allow(clippy::needless_collect)] // clippy bug
|
304 |
#[test]
|
961 |
let mut datalog_vars: HashSet<String> = HashSet::new();
|
962 |
#[allow(clippy::needless_collect)]
|
963 |
let fragments: Vec<_> = rule
|
979 |
let mut datalog_vars: HashSet<String> = HashSet::new();
|
980 |
#[allow(clippy::needless_collect)]
|
981 |
let fragments: Vec<_> = rule
|
459 |
// collect to force spawning the threads instead of just holding them lazily
|
460 |
#[allow(clippy::needless_collect)]
|
461 |
let threads = (0..cores)
|
646 |
#[allow(clippy::needless_collect)]
|
647 |
let res = storage
|
754 |
.expect("Delete documents from store.");
|
755 |
#[allow(clippy::needless_collect)]
|
756 |
let res = storage
|
280 |
self.mock_counters.inc(name);
|
281 |
#[allow(clippy::needless_collect)]
|
282 |
let items = keys.collect::<Vec<_>>();
|
316 |
self.mock_counters.inc(name);
|
317 |
#[allow(clippy::needless_collect)]
|
318 |
let items = documents.collect::<Vec<_>>();
|
330 |
self.mock_counters.inc(name);
|
331 |
#[allow(clippy::needless_collect)]
|
332 |
let items = documents.collect::<Vec<_>>();
|
357 |
self.mock_counters.inc(name);
|
358 |
#[allow(clippy::needless_collect)]
|
359 |
let items = documents.collect::<Vec<_>>();
|
383 |
self.mock_counters.inc(name);
|
384 |
#[allow(clippy::needless_collect)]
|
385 |
let items = doc_ids.collect::<Vec<_>>();
|
638 |
#[allow(clippy::needless_collect)]
|
639 |
let res = storage
|
746 |
.expect("Delete documents from store.");
|
747 |
#[allow(clippy::needless_collect)]
|
748 |
let res = storage
|
285 |
self.mock_counters.inc(name);
|
286 |
#[allow(clippy::needless_collect)]
|
287 |
let items = keys.collect::<Vec<_>>();
|
321 |
self.mock_counters.inc(name);
|
322 |
#[allow(clippy::needless_collect)]
|
323 |
let items = documents.collect::<Vec<_>>();
|
335 |
self.mock_counters.inc(name);
|
336 |
#[allow(clippy::needless_collect)]
|
337 |
let items = documents.collect::<Vec<_>>();
|
362 |
self.mock_counters.inc(name);
|
363 |
#[allow(clippy::needless_collect)]
|
364 |
let items = documents.collect::<Vec<_>>();
|
388 |
self.mock_counters.inc(name);
|
389 |
#[allow(clippy::needless_collect)]
|
390 |
let items = doc_ids.collect::<Vec<_>>();
|
51 |
#[allow(clippy::needless_collect)] // 🚫 we have to collect in order to propertly join threads!
|
52 |
let handlers = files
|
352 |
#[allow(clippy::needless_collect)] // 🚫 we have to collect to close read lock guard!
|
353 |
let file_paths = self
|
118 |
// 5. create dirs
|
119 |
#[allow(clippy::needless_collect)]
|
120 |
let create_dirs_jobs = entities
|
789 |
// so clippy is wrong here
|
790 |
#[allow(clippy::needless_collect)]
|
791 |
fn mysql_transaction_depth_commits_tracked_properly_on_serialization_failure() {
|
895 |
// so clippy is wrong here
|
896 |
#[allow(clippy::needless_collect)]
|
897 |
fn mysql_nested_transaction_depth_commits_tracked_properly_on_serialization_failure() {
|
751 |
// so this is a false positive from clippy
|
752 |
#[allow(clippy::needless_collect)]
|
753 |
fn postgres_transaction_depth_is_tracked_properly_on_serialization_failure() {
|
858 |
// so this is a false positive from clippy
|
859 |
#[allow(clippy::needless_collect)]
|
860 |
fn postgres_transaction_depth_is_tracked_properly_on_nested_serialization_failure() {
|
213 |
#[allow(clippy::needless_collect)]
|
214 |
fn available_type_names(&self) -> Vec<String> {
|
125 |
// replies. This saves round-trips. Without the collect(), there would be one round-trip per CRTC.
|
126 |
#[allow(clippy::needless_collect)]
|
127 |
fn get_monitors_randr_crtcs_timestamp(
|
107 |
/// will not verify.
|
108 |
#[allow(clippy::needless_collect)] // false positive
|
109 |
pub fn new<'a, R: RngCore + CryptoRng>(
|
763 |
#[test]
|
764 |
#[allow(clippy::needless_collect)]
|
765 |
// ^-- false positive; `builder` is captured by the iterator and moved by creating a `proof`
|
251 |
let rows_chan = SyncChannel::new(0);
|
252 |
#[allow(clippy::needless_collect)]
|
253 |
let indexers: Vec<JoinHandle> = (0..index_threads)
|
403 |
#[allow(unused_mut)]
|
404 |
#[allow(clippy::needless_collect)]
|
405 |
pub(crate) fn extract_entries<P>(
|
60 |
fn find_language(index: &Index) -> Result<String, Error> {
|
61 |
#[allow(clippy::needless_collect)]
|
62 |
let index_langs: Vec<LanguageRange> = index
|
155 |
/// other nodes.
|
156 |
#[allow(clippy::needless_collect)]
|
157 |
pub async fn new(
|
252 |
// https://github.com/rust-lang/rust-clippy/issues/6420
|
253 |
#[allow(clippy::needless_collect)]
|
254 |
pub fn refine_shallow(&mut self) {
|
143 |
)]
|
144 |
#[allow(clippy::needless_collect)] // false positive
|
145 |
fn transform_export(
|
495 |
#[allow(clippy::needless_collect)]
|
496 |
fn handle_unsettled_in_attach(
|
2564 |
// otherwise foca remains borrowed
|
2565 |
#[allow(clippy::needless_collect)]
|
2566 |
let updates = foca
|
127 |
// This is safe to allow because we need an ExactSizeIterator of faces
|
128 |
#[allow(clippy::needless_collect)]
|
129 |
let faces: Vec<u32> = mesh
|
220 |
// This is safe to allow because we need an ExactSizeIterator of faces
|
221 |
#[allow(clippy::needless_collect)]
|
222 |
let faces: Vec<u32> = mesh
|
364 |
// This is safe to allow because we need an ExactSizeIterator of faces
|
365 |
#[allow(clippy::needless_collect)]
|
366 |
let faces: Vec<u32> = mesh
|
61 |
// Needed for now because checked is only freed once the value is collected into a Vec
|
62 |
#[allow(clippy::needless_collect)]
|
63 |
let predicates: Vec<_> = (0..checked.transaction().inputs().len())
|
249 |
/// ```
|
250 |
#[allow(clippy::needless_collect)]
|
251 |
fn instrument_function(ctx: &mut Context, func: FunctionBody) -> Result<wasm_encoder::Function> {
|
2157 |
#[allow(clippy::needless_collect)]
|
2158 |
fn handle_batch_push_messages(
|
3111 |
#[test]
|
3112 |
#[allow(clippy::needless_collect)]
|
3113 |
fn test_handle_ping_messages() {
|
3820 |
#[test]
|
3821 |
#[allow(clippy::needless_collect)]
|
3822 |
fn test_split_messages_packet_size() {
|
1080 |
#[test]
|
1081 |
#[allow(clippy::needless_collect)]
|
1082 |
fn test_drop() {
|
73 |
impl<T: Default + Reset + Sized> Recycler<T> {
|
74 |
#[allow(clippy::needless_collect)]
|
75 |
pub fn warmed(num: usize, size_hint: usize) -> Self {
|
915 |
#[must_use]
|
916 |
#[allow(clippy::needless_collect)]
|
917 |
pub fn lock_accounts<'a>(
|
931 |
/// Once accounts are unlocked, new transactions that modify that state can enter the pipeline
|
932 |
#[allow(clippy::needless_collect)]
|
933 |
pub fn unlock_accounts<'a>(
|
3953 |
#[allow(clippy::needless_collect)]
|
3954 |
fn purge_slots<'a>(&self, slots: impl Iterator<Item = &'a Slot>) {
|
6400 |
#[allow(clippy::needless_collect)]
|
6401 |
pub fn generate_index(&self, limit_load_slot_count_from_snapshot: Option<usize>, verify: bool) {
|
1549 |
// This is designed to be called at startup time.
|
1550 |
#[allow(clippy::needless_collect)]
|
1551 |
pub(crate) fn insert_new_if_missing_into_primary_index(
|
3702 |
// Ref: collect_fees
|
3703 |
#[allow(clippy::needless_collect)]
|
3704 |
fn distribute_rent_to_validators(
|
810 |
#[allow(clippy::needless_collect)]
|
811 |
/// Zip files don't have real directories, so we (incorrectly) hack it by
|
313 |
/// Create a message for the given paths.
|
314 |
#[allow(clippy::needless_collect)]
|
315 |
fn message_for_paths<P>(
|
186 |
let stdout = String::from_utf8(output.stdout).wrap_err("Could not run `git fetch`")?;
|
187 |
#[allow(clippy::needless_collect)]
|
188 |
let remote_branches: Vec<_> = stdout
|
960 |
let stdout = String::from_utf8(output.stdout).wrap_err("Could not run `git fetch`")?;
|
961 |
#[allow(clippy::needless_collect)]
|
962 |
let remote_branches: Vec<_> = stdout
|
15 |
#[allow(clippy::needless_collect)]
|
16 |
pub fn get_output(input: Input) -> TokenStream {
|
71 |
#[cfg(test)]
|
72 |
#[allow(clippy::needless_collect)]
|
73 |
mod test {
|
41 |
}
|
42 |
#[allow(clippy::needless_collect)]
|
43 |
fn reverse_path<N, V, F>(parents: &IndexMap<N, V>, mut parent: F, start: usize) -> Vec<N>
|
167 |
/// to the writer.
|
168 |
#[allow(clippy::needless_collect)]
|
169 |
fn run<W>(
|
125 |
#[allow(clippy::needless_collect)]
|
126 |
fn run<R>(
|
222 |
// the mutable borrow on `seen`.
|
223 |
#[allow(clippy::needless_collect)]
|
224 |
// Compute the initial set of cell, using polygon edges.
|
297 |
let pt_groups = geo.get_group_names(GroupType::Point).unwrap();
|
298 |
#[allow(clippy::needless_collect)]
|
299 |
{
|
885 |
// We need to realize all values...
|
886 |
#[allow(clippy::needless_collect)] // Needed by borrow checker.
|
887 |
let evaluated = self.evaluated_variables.iter()
|
84 |
// Clippy is wrong :(
|
85 |
#[allow(clippy::needless_collect)]
|
86 |
let basis = ops
|
892 |
#[allow(clippy::needless_collect)]
|
893 |
#[tracing::instrument(skip(self), level = "trace")]
|
219 |
// The collect switches the type which shows up in the API. Blegh.
|
220 |
#[allow(clippy::needless_collect)]
|
221 |
let v: Vec<AnnotatedAxiom<A>> = btreemap
|
211 |
fn into_iter(self) -> Self::IntoIter {
|
212 |
#[allow(clippy::needless_collect)]
|
213 |
let v: Vec<AnnotatedAxiom<_>> = self.0.into_iter().map(|fi| fi.unwrap()).collect();
|
221 |
fn into_iter(self) -> Self::IntoIter {
|
222 |
#[allow(clippy::needless_collect)]
|
223 |
let v: Vec<&'a AnnotatedAxiom<A>> = self.0.iter().map(|fiac| fiac.borrow()).collect();
|
36 |
/// A local counter in each thread (manual implementation).
|
37 |
#[allow(clippy::needless_collect)]
|
38 |
fn simple_add(tot: i64, n: u32) -> i64 {
|
82 |
impl CommonDateProvider {
|
83 |
#[allow(clippy::needless_collect)] // https://github.com/rust-lang/rust-clippy/issues/7526
|
84 |
pub fn supported_options_for_key(
|
63 |
impl IterableProvider for DatePatternsProvider {
|
64 |
#[allow(clippy::needless_collect)] // https://github.com/rust-lang/rust-clippy/issues/7526
|
65 |
fn supported_options_for_key(
|
62 |
impl IterableProvider for DateSkeletonPatternsProvider {
|
63 |
#[allow(clippy::needless_collect)] // https://github.com/rust-lang/rust-clippy/issues/7526
|
64 |
fn supported_options_for_key(
|
68 |
impl IterableProvider for DateSymbolsProvider {
|
69 |
#[allow(clippy::needless_collect)] // https://github.com/rust-lang/rust-clippy/issues/7526
|
70 |
fn supported_options_for_key(
|
138 |
impl IterableProvider for NumbersProvider {
|
139 |
#[allow(clippy::needless_collect)] // https://github.com/rust-lang/rust-clippy/issues/7526
|
140 |
fn supported_options_for_key(
|
147 |
impl IterableProvider for ListProvider {
|
148 |
#[allow(clippy::needless_collect)] // https://github.com/rust-lang/rust-clippy/issues/7526
|
149 |
fn supported_options_for_key(
|
108 |
impl IterableProvider for PluralsProvider {
|
109 |
#[allow(clippy::needless_collect)] // https://github.com/rust-lang/rust-clippy/issues/7526
|
110 |
fn supported_options_for_key(
|
83 |
impl IterableProvider for TimeZonesProvider {
|
84 |
#[allow(clippy::needless_collect)] // https://github.com/rust-lang/rust-clippy/issues/7526
|
85 |
fn supported_options_for_key(
|
158 |
#[allow(clippy::needless_collect)]
|
159 |
fn vertex_query_to_iterator<'iter, 'trans: 'iter>(
|
57 |
#[allow(clippy::needless_collect)]
|
58 |
fn execute(&mut self, mut parent_stack: StackRef, ctx: ContextRef) -> anyhow::Result<()> {
|
168 |
{
|
169 |
#[allow(clippy::needless_collect)]
|
170 |
fn blocks_accessed(&self, blocks: Vec<BlockInfo>) {
|
845 |
RpcMessage::NetPeers(response_channel) => {
|
846 |
#[allow(clippy::needless_collect)]
|
847 |
let peers = self.swarm.connected_peers().copied().collect::<Vec<_>>();
|
337 |
// Create new vector of data to go on it's own pages
|
338 |
#[allow(clippy::needless_collect)]
|
339 |
let new_data: Vec<NodeData> = split_indexes
|
42 |
#[allow(clippy::needless_collect)]
|
43 |
fn validate<'instance>(
|
197 |
#[allow(clippy::needless_collect)]
|
198 |
fn validate<'instance>(
|
40 |
#[allow(clippy::needless_collect)]
|
41 |
fn validate<'instance>(
|
64 |
#[allow(clippy::needless_collect)]
|
65 |
fn validate<'instance>(
|
45 |
#[allow(clippy::needless_collect)]
|
46 |
fn validate<'instance>(
|
120 |
#[allow(clippy::needless_collect)]
|
121 |
fn validate<'instance>(
|
201 |
#[allow(clippy::needless_collect)]
|
202 |
fn validate<'instance>(
|
42 |
#[allow(clippy::needless_collect)]
|
43 |
fn validate<'instance>(
|
96 |
#[allow(clippy::needless_collect)]
|
97 |
fn validate<'instance>(
|
179 |
#[allow(clippy::needless_collect)]
|
180 |
fn validate<'instance>(
|
1621 |
// reverse
|
1622 |
#[allow(clippy::needless_collect)]
|
1623 |
RevsetExpression::DagRange { roots, heads } => {
|
385 |
#[allow(clippy::needless_collect)]
|
386 |
// Clippy suggests using the sorted_idxs iter directly and manipulating it
|
332 |
#[test]
|
333 |
#[allow(clippy::needless_collect)]
|
334 |
fn test_iter() {
|
103 |
#[test]
|
104 |
#[allow(clippy::needless_collect)]
|
105 |
fn test_explicit_round_robin_select() {
|
152 |
#[test]
|
153 |
#[allow(clippy::needless_collect)]
|
154 |
fn test_explicit_hash_select() {
|
220 |
#[test]
|
221 |
#[allow(clippy::needless_collect)]
|
222 |
fn test_implicit_select() {
|
284 |
#[test]
|
285 |
#[allow(clippy::needless_collect)]
|
286 |
fn test_explicit_broadcast() {
|
344 |
#[test]
|
345 |
#[allow(clippy::needless_collect)]
|
346 |
fn test_implicit_broadcast() {
|
81 |
// collect tuple of page-checks and Curl handler:
|
82 |
#[allow(clippy::needless_collect)] // Clippy BUG: not needless!
|
83 |
let process_handlers: Vec<_> = all_pages
|
60 |
Some(pool) => {
|
61 |
#[allow(clippy::needless_collect)]
|
62 |
let (count, dropped) = {
|
54 |
#[allow(clippy::needless_collect)]
|
55 |
let (count, dropped) = {
|
179 |
#[allow(clippy::needless_collect)]
|
180 |
fn gen_encode_union(u: &Union) -> TokenStream {
|
493 |
#[allow(clippy::needless_collect)] // Drop the handles of the inactive servers to kill them.
|
494 |
let inactive_ids: Vec<_> = inactive.into_iter().map(|(id, _handle)| id).collect();
|
464 |
// mut borrow to self.
|
465 |
#[allow(clippy::needless_collect)]
|
466 |
let early_peers: Vec<PeerId> = self.early_peers.drain().collect();
|
288 |
// mut borrow to self.
|
289 |
#[allow(clippy::needless_collect)]
|
290 |
let selected: Vec<_> = self
|
60 |
impl FixedPeersIter {
|
61 |
#[allow(clippy::needless_collect)]
|
62 |
pub fn new<I>(peers: I, parallelism: NonZeroUsize) -> Self
|
298 |
#[allow(clippy::needless_collect)]
|
299 |
fn search_with_cpus(self) -> Option<GitCommit<H>> {
|
1450 |
fn find_irrelevant_backup_files(&self, backup: &str, relevant_files: &[StrictPath]) -> Vec<StrictPath> {
|
1451 |
#[allow(clippy::needless_collect)]
|
1452 |
let relevant_files: Vec<_> = relevant_files.iter().map(|x| x.interpret()).collect();
|
88 |
// This is a bug in clippy, this collect is not needless
|
89 |
#[allow(clippy::needless_collect)]
|
90 |
let id = state.dns_resources_mut().add(DnsIterator::new(
|
179 |
#[allow(clippy::needless_collect)]
|
180 |
fn gen_encode_union(u: &Union) -> TokenStream {
|
211 |
#[test]
|
212 |
#[allow(clippy::needless_collect)]
|
213 |
fn dkim_canonicalize() {
|
409 |
// TODO: these collects are needed because of https://github.com/nyx-space/hifitime/issues/131
|
410 |
#[allow(clippy::needless_collect)]
|
411 |
fn vis_ctx_timeseries_length() {
|
1543 |
let end_token = tlm.end;
|
1544 |
#[allow(clippy::needless_collect)]
|
1545 |
let timeline: Vec<StoreResult<SyncTimelineEvent>> = timeline
|
78 |
{
|
79 |
#[allow(clippy::needless_collect)]
|
80 |
fn send_and_receive<'a, T>(
|
80 |
{
|
81 |
#[allow(clippy::needless_collect)]
|
82 |
fn send_and_receive<'a, T>(
|
421 |
#[test]
|
422 |
#[allow(clippy::needless_collect)] // needed for threads to be spawned concurrently
|
423 |
fn single_shared_mock_in_multi_thread_env() {
|
438 |
#[test]
|
439 |
#[allow(clippy::needless_collect)] // needed for threads to be spawned concurrently
|
440 |
fn per_thread_mock_in_multi_thread_env() {
|
477 |
#[cfg(debug_assertions)]
|
478 |
#[allow(clippy::needless_collect)]
|
479 |
impl Drop for ServiceProvider {
|
793 |
// https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
|
794 |
#[allow(clippy::needless_collect)]
|
795 |
let handles = (0..num_threads)
|
1057 |
// https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
|
1058 |
#[allow(clippy::needless_collect)]
|
1059 |
let handles = (0..NUM_THREADS)
|
433 |
// clippy 0.1.52 (9a1dfd2dc5c 2021-04-30) in Rust 1.52.0-beta.7
|
434 |
#[allow(clippy::needless_collect)]
|
435 |
pub fn invalidate_entries_if(&mut self, mut predicate: impl FnMut(&K, &V) -> bool) {
|
52 |
#[test]
|
53 |
#[allow(clippy::needless_collect)]
|
54 |
fn unique_id() {
|
1063 |
/// ```
|
1064 |
#[allow(clippy::needless_collect)]
|
1065 |
fn poll(
|
910 |
#[allow(clippy::needless_collect)]
|
911 |
let ps = stake
|
215 |
#[allow(clippy::needless_collect)]
|
216 |
// rust iterators are lazy
|
655 |
#[allow(clippy::needless_collect)]
|
656 |
let threads: Vec<_> = (0..NUM_THREADS)
|
782 |
#[allow(clippy::needless_collect)]
|
783 |
let threads: Vec<_> = (0..NUM_THREADS)
|
822 |
#[allow(clippy::needless_collect)]
|
823 |
let threads: Vec<_> = (0..NUM_THREADS)
|
892 |
#[allow(clippy::needless_collect)]
|
893 |
let threads: Vec<_> = (0..NUM_THREADS)
|
938 |
#[allow(clippy::needless_collect)]
|
939 |
let insert_threads: Vec<_> = (0..NUM_THREADS)
|
785 |
// https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
|
786 |
#[allow(clippy::needless_collect)]
|
787 |
let handles = (0..num_threads)
|
1049 |
// https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
|
1050 |
#[allow(clippy::needless_collect)]
|
1051 |
let handles = (0..NUM_THREADS)
|
2031 |
// https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
|
2032 |
#[allow(clippy::needless_collect)]
|
2033 |
let handles = (0..num_threads)
|
2461 |
// https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
|
2462 |
#[allow(clippy::needless_collect)]
|
2463 |
let handles = (0..NUM_THREADS)
|
1027 |
// https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
|
1028 |
#[allow(clippy::needless_collect)]
|
1029 |
let handles = (0..num_threads)
|
986 |
// TODO: refactor this
|
987 |
#[allow(clippy::needless_collect)]
|
988 |
fn into_iter(self) -> Self::IntoIter {
|
19 |
// as suggested by clippy, causes this test to crash :-/
|
20 |
#[allow(clippy::needless_collect)]
|
21 |
let v = i.iter().cloned().collect::<Vec<_>>();
|
33 |
b.iter(|| {
|
34 |
#[allow(clippy::needless_collect)]
|
35 |
let v = i.iter().map(|r| MownStr::from(*r)).collect::<Vec<_>>();
|
47 |
b.iter(|| {
|
48 |
#[allow(clippy::needless_collect)]
|
49 |
let v = i
|
65 |
b.iter(|| {
|
66 |
#[allow(clippy::needless_collect)]
|
67 |
let v = i
|
23 |
#[allow(clippy::needless_collect)]
|
24 |
// Clippy doesn't understand the need. Needed because we have borrowed values within.
|
54 |
#[allow(clippy::needless_collect)]
|
55 |
fn inline_single_target_blocks(
|
26 |
// needed as `row.unwrap()` consumes `Row`.
|
27 |
#[allow(clippy::needless_collect)]
|
28 |
fn from_row_opt(row: Row) -> Result<Self, FromRowError> {
|
33 |
// needed as `row.unwrap()` consumes `Row`.
|
34 |
#[allow(clippy::needless_collect)]
|
35 |
fn from_row_opt(row: Row) -> Result<Self, FromRowError> {
|
101 |
/// and provides these details (if any) to `callback`.
|
102 |
#[allow(clippy::needless_collect)]
|
103 |
pub fn select_trains<F>(
|
362 |
// TODO: remove the allow clippy when we update the compiler version.
|
363 |
#[allow(clippy::needless_collect)]
|
364 |
pub(crate) fn get_required_usage_from(
|
327 |
// See https://github.com/rust-lang/rust-clippy/issues/7526
|
328 |
#[allow(clippy::needless_collect)]
|
329 |
let contracts2: Vec<Contract> = contracts2
|
250 |
/// An lnc block tip may have children which are not notarized.
|
251 |
#[allow(clippy::needless_collect)]
|
252 |
pub fn lnc_tips(&self) -> BTreeSet<HashVal> {
|
35 |
// XXX(soija) ConfigFiles does not implement DoubledEndedIterator
|
36 |
#[allow(clippy::needless_collect)]
|
37 |
let ps = matching_config_files("nreplops-hosts.toml")
|
235 |
#[allow(clippy::needless_collect)]
|
236 |
let comps: Vec<_> = path
|
156 |
#[allow(clippy::needless_collect)]
|
157 |
let glob_results: Vec<Value> = glob
|
45 |
match input {
|
46 |
#[allow(clippy::needless_collect)]
|
47 |
// Collect is needed because the string may not live long enough for
|
74 |
#[allow(clippy::needless_collect)]
|
75 |
let v: Vec<_> = input.into_iter_strict(call.head)?.collect();
|
98 |
#[allow(clippy::needless_collect)]
|
99 |
let input: Vec<_> = input
|
46 |
#[allow(clippy::needless_collect)]
|
47 |
pub fn encoded_quads_for_pattern(
|
734 |
#[allow(clippy::needless_collect)]
|
735 |
fn label(
|
47 |
#[allow(clippy::needless_collect)]
|
48 |
let threads: Vec<JoinHandle<_>> = (0..10)
|
90 |
let inner_parser = clap::builder::EnumValueParser::<BumpLevel>::new();
|
91 |
#[allow(clippy::needless_collect)] // Erasing a lifetime
|
92 |
inner_parser.possible_values().map(|ps| {
|
121 |
// False positive: need to give up immutable borrow of graph before removing node from graph
|
122 |
#[allow(clippy::needless_collect)]
|
123 |
let dependents: Vec<NodeIndex> = graph
|
19 |
#[allow(clippy::needless_collect)]
|
20 |
fn reverse_path<N, V, F>(parents: &FxIndexMap<N, V>, mut parent: F, start: usize) -> Vec<N>
|
39 |
let z0 = F::Extension::W.exp_biguint(&(k * count as u64));
|
40 |
#[allow(clippy::needless_collect)]
|
41 |
let zs = z0
|
92 |
// into a iterator.
|
93 |
#[allow(clippy::needless_collect)]
|
94 |
let ysegs: Vec<_> = ys
|
133 |
#[cfg(feature = "mode")]
|
134 |
#[allow(clippy::needless_collect)]
|
135 |
fn mode<T: PolarsDataType>(ca: &ChunkedArray<T>) -> ChunkedArray<T>
|
315 |
// b -> a
|
316 |
#[allow(clippy::needless_collect)]
|
317 |
let existing_idx = existing
|
540 |
/// - `shutdown_rx` - Sentinel channel to tell the pool management thread to shutdown.
|
541 |
#[allow(clippy::unnecessary_wraps, clippy::needless_collect, clippy::needless_pass_by_value)]
|
542 |
fn pool_main<W, C>(
|
110 |
#[allow(clippy::needless_collect)]
|
111 |
fn load(&mut self, n: usize, rng: &mut SmallRng) -> (time::Duration, usize) {
|
229 |
#[allow(clippy::needless_collect)]
|
230 |
fn op_insert(&mut self, n_ops: usize, rng: &mut SmallRng) {
|
249 |
#[allow(clippy::needless_collect)]
|
250 |
fn op_insert_mut(&mut self, n_ops: usize, rng: &mut SmallRng) {
|
269 |
#[allow(clippy::needless_collect)]
|
270 |
fn op_remove(&mut self, n_ops: usize, rng: &mut SmallRng) {
|
301 |
#[allow(clippy::needless_collect)]
|
302 |
fn op_remove_mut(&mut self, n_ops: usize, rng: &mut SmallRng) {
|
66 |
#[allow(clippy::needless_collect)]
|
67 |
/// Returns true if the given `word` complies to all the constraints in the set.
|
117 |
// The iterators cannot be chained, as RevBufReader.lines doesn't implement the necessary traits.
|
118 |
#[allow(clippy::needless_collect)]
|
119 |
pub fn read_last_lines(file: &mut File, amount: usize) -> String {
|
74 |
// collect is necessary.
|
75 |
#[allow(clippy::needless_collect)]
|
76 |
let lf_idxs = lf_idxs
|
507 |
#[tokio::test]
|
508 |
#[allow(clippy::needless_collect)]
|
509 |
async fn test_synced_read_at() -> anyhow::Result<()> {
|
1278 |
#[allow(clippy::needless_collect)]
|
1279 |
let threads = (0..BLOCK_COUNT)
|
1569 |
let initialized_parts = Arc::new(uploader.initialize_parts(file_source, params)?);
|
1570 |
#[allow(clippy::needless_collect)]
|
1571 |
let threads = (0..BLOCK_COUNT)
|
1575 |
#[allow(clippy::needless_collect)]
|
1576 |
let threads = (0..BLOCK_COUNT)
|
1901 |
let initialized_parts = Arc::new(uploader.initialize_parts(file_source, params)?);
|
1902 |
#[allow(clippy::needless_collect)]
|
1903 |
let threads = (0..BLOCK_COUNT)
|
282 |
None => {
|
283 |
#[allow(clippy::needless_collect)]
|
284 |
let splitted: Vec<String> = cap[1]
|
185 |
type IntoIter = std::vec::IntoIter<E>;
|
186 |
#[allow(clippy::needless_collect)]
|
187 |
// TODO We have to use collect/into_iter here for now, since
|
116 |
// The collects are necessary in release mode
|
117 |
#[allow(clippy::needless_collect)]
|
118 |
impl Proof {
|
93 |
// We don't care about the ID here.
|
94 |
#[allow(clippy::needless_collect)]
|
95 |
let t: Vec<Self::Item> = self.inner.into_iter().map(|item| item.1).collect();
|
137 |
// Create a vector with all sources from existing targets using absolute paths
|
138 |
#[allow(clippy::needless_collect)] // Benchmark shows no diff, code is clearer this way.
|
139 |
let sources: PathList = existing_targets
|
286 |
#[allow(clippy::needless_collect)]
|
287 |
fn grow_nodes(&self, node: &NodeLink<I, S>) -> Vec<(Coordinate, Vec<f64>)> {
|
127 |
let filenames = vec![".rtxrc", ".rtxrc.toml", ".tool-versions"];
|
128 |
#[allow(clippy::needless_collect)]
|
129 |
let find_up = FindUp::new(path, &filenames).collect::<Vec<_>>();
|
127 |
let filenames = vec![".rtxrc", ".rtxrc.toml", ".tool-versions"];
|
128 |
#[allow(clippy::needless_collect)]
|
129 |
let find_up = FindUp::new(path, &filenames).collect::<Vec<_>>();
|
167 |
// `self.global(node)` has side effects that have to happen here
|
168 |
#[allow(clippy::needless_collect)]
|
169 |
let globals: Vec<AnalyzedLetStmt> = program
|
80 |
impl<T: Default + Reset + Sized> Recycler<T> {
|
81 |
#[allow(clippy::needless_collect)]
|
82 |
pub fn warmed(num: usize, size_hint: usize) -> Self {
|
1137 |
#[must_use]
|
1138 |
#[allow(clippy::needless_collect)]
|
1139 |
pub fn lock_accounts<'a>(
|
1150 |
#[must_use]
|
1151 |
#[allow(clippy::needless_collect)]
|
1152 |
pub fn lock_accounts_with_results<'a>(
|
1187 |
/// Once accounts are unlocked, new transactions that modify that state can enter the pipeline
|
1188 |
#[allow(clippy::needless_collect)]
|
1189 |
pub fn unlock_accounts<'a>(
|
5325 |
#[allow(clippy::needless_collect)]
|
5326 |
fn purge_slots<'a>(&self, slots: impl Iterator<Item = &'a Slot> + Clone) {
|
8441 |
#[allow(clippy::needless_collect)]
|
8442 |
pub fn generate_index(
|
1541 |
// This is designed to be called at startup time.
|
1542 |
#[allow(clippy::needless_collect)]
|
1543 |
pub(crate) fn insert_new_if_missing_into_primary_index(
|
5115 |
// Ref: collect_fees
|
5116 |
#[allow(clippy::needless_collect)]
|
5117 |
fn distribute_rent_to_validators(
|
205 |
for _ in 0..50 {
|
206 |
#[allow(clippy::needless_collect)] // https://github.com/rust-lang/rust-clippy/issues/7207
|
207 |
let threads = (0..3)
|
181 |
for _ in 0..50 {
|
182 |
#[allow(clippy::needless_collect)] // https://github.com/rust-lang/rust-clippy/issues/7207
|
183 |
let threads = (0..3)
|
33 |
/// Intended for use when committing.
|
34 |
#[allow(clippy::needless_collect)]
|
35 |
pub fn iter_for_commit(&mut self) -> impl Iterator<Item = LabeledPolynomialWithBasis<'static, F>> {
|
974 |
// https://github.com/rust-lang/rust-clippy/issues/5991
|
975 |
#[allow(clippy::needless_collect)]
|
976 |
fn download_with_progress(
|
424 |
// with their packet indexes.
|
425 |
#[allow(clippy::needless_collect)]
|
426 |
pub fn transaction_from_deserialized_packet(
|
2242 |
#[allow(clippy::needless_collect)]
|
2243 |
fn handle_batch_push_messages(
|
3364 |
#[test]
|
3365 |
#[allow(clippy::needless_collect)]
|
3366 |
fn test_handle_ping_messages() {
|
4122 |
#[test]
|
4123 |
#[allow(clippy::needless_collect)]
|
4124 |
fn test_split_messages_packet_size() {
|
1249 |
#[test]
|
1250 |
#[allow(clippy::needless_collect)]
|
1251 |
fn test_drop() {
|
330 |
// The collection is a pair of (full cost, cost without estimated-bpf-code-costs).
|
331 |
#[allow(clippy::needless_collect)]
|
332 |
let tx_costs = sanitized_txs
|
80 |
impl<T: Default + Reset + Sized> Recycler<T> {
|
81 |
#[allow(clippy::needless_collect)]
|
82 |
pub fn warmed(num: usize, size_hint: usize) -> Self {
|
1139 |
#[must_use]
|
1140 |
#[allow(clippy::needless_collect)]
|
1141 |
pub fn lock_accounts<'a>(
|
1152 |
#[must_use]
|
1153 |
#[allow(clippy::needless_collect)]
|
1154 |
pub fn lock_accounts_with_results<'a>(
|
1189 |
/// Once accounts are unlocked, new transactions that modify that state can enter the pipeline
|
1190 |
#[allow(clippy::needless_collect)]
|
1191 |
pub fn unlock_accounts<'a>(
|
5316 |
#[allow(clippy::needless_collect)]
|
5317 |
fn purge_slots<'a>(&self, slots: impl Iterator<Item = &'a Slot> + Clone) {
|
8427 |
#[allow(clippy::needless_collect)]
|
8428 |
pub fn generate_index(
|
1541 |
// This is designed to be called at startup time.
|
1542 |
#[allow(clippy::needless_collect)]
|
1543 |
pub(crate) fn insert_new_if_missing_into_primary_index(
|
4898 |
// Ref: collect_fees
|
4899 |
#[allow(clippy::needless_collect)]
|
4900 |
fn distribute_rent_to_validators(
|
465 |
#[allow(clippy::needless_collect)]
|
466 |
fn read_allocations(
|
17 |
/// An enum may contain variants which are invalid and will cause a runtime errors during serialize/deserialization. This function will filter them out so types can be exported for valid variants.
|
18 |
#[allow(clippy::needless_collect)]
|
19 |
pub fn make_flattenable(&mut self) {
|
79 |
#[allow(clippy::needless_collect)]
|
80 |
let pull_request_tasks: Vec<_> = prepared_commits
|
675 |
// download for the large objects), which we will then evaluate in parallel.
|
676 |
#[allow(clippy::needless_collect)] // collect is needed to avoid lifetime issues with `self`
|
677 |
let parts = self
|
708 |
async fn it_process_background_tasks() {
|
709 |
#[allow(clippy::needless_collect)]
|
710 |
let receivers: Vec<_> = (0..100_usize)
|
690 |
// iteration.
|
691 |
#[allow(clippy::needless_collect)]
|
692 |
let handles = self.filesystems.iter_mut()
|
747 |
// iteration.
|
748 |
#[allow(clippy::needless_collect)]
|
749 |
let handles = needs_save.into_iter()
|
849 |
// different closures in the same iterator.
|
850 |
#[allow(clippy::needless_collect)]
|
851 |
fn into(self) -> Vec<SomeLockReadGuard<U, T>> {
|
957 |
// different closures in the same iterator.
|
958 |
#[allow(clippy::needless_collect)]
|
959 |
fn into(self) -> Vec<SomeLockWriteGuard<U, T>> {
|
393 |
// Move the block arguments to the new block. We collect because we want to mutate next.
|
394 |
#[allow(clippy::needless_collect)]
|
395 |
let args: Vec<_> = self.arg_iter(context).copied().collect();
|
115 |
// if we try that then we have borrowing issues with `ir` which is used within the closure.
|
116 |
#[allow(clippy::needless_collect)]
|
117 |
#[test]
|
132 |
#[allow(clippy::needless_collect)]
|
133 |
#[test]
|
148 |
#[allow(clippy::needless_collect)]
|
149 |
#[test]
|
164 |
#[allow(clippy::needless_collect)]
|
165 |
#[test]
|
23 |
// Collect to avoid immutable + mutable reference.
|
24 |
#[allow(clippy::needless_collect)]
|
25 |
let token_indices: Vec<_> = (0..sentence.len())
|
259 |
// Collect to avoid immutable + mutable reference.
|
260 |
#[allow(clippy::needless_collect)]
|
261 |
let token_indices: Vec<_> = (0..sentence.len())
|
99 |
// Collect to avoid immutable + mutable reference.
|
100 |
#[allow(clippy::needless_collect)]
|
101 |
let token_indices: Vec<_> = (0..sentence.len())
|
278 |
// We need `collect` otherwise we can't have mutable access to `system`.
|
279 |
#[allow(clippy::needless_collect)]
|
280 |
let first_pids = system
|
130 |
// but since the links refer to their position, we need to first record them
|
131 |
#[allow(clippy::needless_collect)]
|
132 |
let initial_positions: Vec<_> = tax_nodes.iter().map(|n| n.id.clone()).collect();
|
83 |
#[allow(clippy::needless_collect)]
|
84 |
fn all(&self, status: Status) -> Box<dyn Iterator<Item = LightBlock>> {
|
1100 |
/// Handling various tasks sent externally
|
1101 |
#[allow(clippy::needless_collect)]
|
1102 |
async fn handle_service_task(&mut self, event: ServiceTask, priority: Priority) {
|
1188 |
// Borrowed check attack
|
1189 |
#[allow(clippy::needless_collect)]
|
1190 |
{
|
244 |
// `Chars` is not a double-ended iterator
|
245 |
#[allow(clippy::needless_collect)]
|
246 |
let iter: Vec<_> = self.text.chars().take(self.cur_pos).collect();
|
421 |
let remote_id = remote.id.clone();
|
422 |
#[allow(clippy::needless_collect)]
|
423 |
let all_state_infoes = (*self.0)
|
83 |
/// a problem decoding the response.
|
84 |
#[allow(clippy::needless_collect)] // needed for achieving parallelism
|
85 |
pub fn with_timeout(timeout: Option<Duration>) -> Result<Vec<(SocketAddr, DeviceData)>> {
|
16 |
let barrier = Arc::new(AtomicBool::new(false));
|
17 |
#[allow(clippy::needless_collect)]
|
18 |
let threads: Vec<_> = (0..thread_count)
|
294 |
#[test]
|
295 |
#[allow(clippy::needless_collect)] // necessary for threads to be concurrent
|
296 |
fn concurrent_senders() {
|
447 |
let values = {
|
448 |
#[allow(clippy::needless_collect)] // clippy bug ?
|
449 |
let precs: Vec<usize> =
|
544 |
// filter string will be run.
|
545 |
#[allow(clippy::needless_collect)] // false positive https://github.com/rust-lang/rust-clippy/issues/5991
|
546 |
fn filter(tests: &mut Vec<ExpandedTest>) {
|
522 |
// filter string will be run.
|
523 |
#[allow(clippy::needless_collect)] // false positive https://github.com/rust-lang/rust-clippy/issues/5991
|
524 |
fn filter(tests: &mut Vec<ExpandedTest>) {
|
188 |
// filter string will be run.
|
189 |
#[allow(clippy::needless_collect)] // false positive https://github.com/rust-lang/rust-clippy/issues/5991
|
190 |
fn parse_include(args: impl IntoIterator<Item = std::ffi::OsString>) -> Option<Vec<String>> {
|
122 |
/// Fetch all sources and update Ui
|
123 |
#[allow(clippy::needless_collect)]
|
124 |
fn fetch_all_sources(&mut self) {
|
117 |
/// Returns only the messages, while the None returned by poll are discarded
|
118 |
#[allow(clippy::needless_collect)]
|
119 |
fn poll(&mut self) -> Result<(), mpsc::SendError<ListenerMsg<U>>> {
|
27 |
#[allow(clippy::needless_collect)]
|
28 |
fn match_token(&mut self, token: Token<'p>) -> Result<Statement, ParserError<'p>> {
|
257 |
fn thread_safety() {
|
258 |
#[allow(clippy::needless_collect)]
|
259 |
fn test<T>()
|
127 |
let mut found_directory = false;
|
128 |
#[allow(clippy::needless_collect)] // need collect to satisfy lifetime requirements
|
129 |
let entries: Vec<_> = handle
|
271 |
// Not actually needless: must drop the borrow on the transport before alloc_queue_mem()
|
272 |
#[allow(clippy::needless_collect)]
|
273 |
let iova_translators: Vec<_> = iter::repeat_with(|| transport.iova_translator())
|
15 |
/// Repairs a feasible solution from another, potentially infeasible.
|
16 |
#[allow(clippy::needless_collect)]
|
17 |
pub fn repair_solution_from_unknown(
|
104 |
insertion_ctx.solution.routes.iter_mut().for_each(|route_ctx| {
|
105 |
#[allow(clippy::needless_collect)]
|
106 |
let clusters = route_ctx
|
100 |
/// Creates route pairs to exchange jobs.
|
101 |
#[allow(clippy::needless_collect)] // NOTE enforce size hint to be non-zero
|
102 |
fn create_route_pairs(insertion_ctx: &InsertionContext, route_pairs_threshold: usize) -> Vec<(usize, usize)> {
|
111 |
.flat_map(|route_ctx| {
|
112 |
#[allow(clippy::needless_collect)]
|
113 |
let all_jobs = route_ctx.route.tour.jobs().filter(|job| !locked.contains(job)).collect::<Vec<_>>();
|
76 |
#[allow(clippy::needless_collect)]
|
77 |
let routes = route_groups_distances[route_index]
|
123 |
#[allow(clippy::needless_collect)]
|
124 |
let routes = route_sizes
|
80 |
impl<T: Default + Reset + Sized> Recycler<T> {
|
81 |
#[allow(clippy::needless_collect)]
|
82 |
pub fn warmed(num: usize, size_hint: usize) -> Self {
|
1222 |
#[must_use]
|
1223 |
#[allow(clippy::needless_collect)]
|
1224 |
pub fn lock_accounts<'a>(
|
1235 |
#[must_use]
|
1236 |
#[allow(clippy::needless_collect)]
|
1237 |
pub fn lock_accounts_with_results<'a>(
|
1272 |
/// Once accounts are unlocked, new transactions that modify that state can enter the pipeline
|
1273 |
#[allow(clippy::needless_collect)]
|
1274 |
pub fn unlock_accounts<'a>(
|
5843 |
#[allow(clippy::needless_collect)]
|
5844 |
fn purge_slots<'a>(&self, slots: impl Iterator<Item = &'a Slot> + Clone) {
|
8832 |
#[allow(clippy::needless_collect)]
|
8833 |
pub fn generate_index(
|
1567 |
// This is designed to be called at startup time.
|
1568 |
#[allow(clippy::needless_collect)]
|
1569 |
pub(crate) fn insert_new_if_missing_into_primary_index(
|
5040 |
// Ref: collect_fees
|
5041 |
#[allow(clippy::needless_collect)]
|
5042 |
fn distribute_rent_to_validators(
|
1325 |
// All shared buffer readers need to be created before the threads are spawned
|
1326 |
#[allow(clippy::needless_collect)]
|
1327 |
let archives: Vec<_> = (0..num_threads)
|
236 |
/// is currently not implemented.
|
237 |
#[allow(clippy::needless_collect, clippy::missing_panics_doc)]
|
238 |
pub fn set_sink_id_sync(&self, sink_id: String) -> Result<(), Box<dyn Error>> {
|
100 |
// change the API to borrow on `paths`.
|
101 |
#[allow(clippy::needless_collect)]
|
102 |
let paths: Vec<_> = env::split_paths(&p).collect();
|
13 |
#[tokio::test]
|
14 |
#[allow(clippy::needless_collect)]
|
15 |
async fn integration_test() {
|
67 |
// We collect here to start all the threads.
|
68 |
#[allow(clippy::needless_collect)]
|
69 |
let threads = self
|
203 |
#[allow(clippy::needless_collect)]
|
204 |
fn example1() -> Result<(), Box<dyn Error>> {
|
546 |
fn compile_function_inner(&mut self, args: &[FuncArg], body: &Query) -> Result<Address> {
|
547 |
#[allow(clippy::needless_collect)] // This collect is needed to unborrow `self`
|
548 |
let slots: Vec<_> = args
|
966 |
#[test]
|
967 |
#[allow(clippy::needless_collect)]
|
968 |
fn test_many() {
|
1002 |
#[test]
|
1003 |
#[allow(clippy::needless_collect)]
|
1004 |
fn test_many_err() {
|
47 |
#[allow(clippy::needless_collect)]
|
48 |
let readers: Vec<_> = reader_cstrs
|
78 |
// we must collect to ensure the incoming connections are all processed, before creating the dot file
|
79 |
#[allow(clippy::needless_collect)]
|
80 |
let arrow_details: Vec<ElementDetails<Element>> = elements
|
96 |
// we must collect to ensure the incoming connections are all processed, before creating the dot file
|
97 |
#[allow(clippy::needless_collect)]
|
98 |
let arrow_details: Vec<ElementDetails<Element>> = elements
|
342 |
// register psid<->zid mappings & apply mapping to nodes
|
343 |
#[allow(clippy::needless_collect)] // need to release borrow on self
|
344 |
let link_states = link_states
|
2 |
clippy::type_complexity,
|
3 |
clippy::needless_collect,
|
4 |
clippy::too_many_arguments
|
2 |
clippy::type_complexity,
|
3 |
clippy::needless_collect,
|
4 |
clippy::too_many_arguments
|
2 |
clippy::type_complexity,
|
3 |
clippy::needless_collect,
|
4 |
clippy::too_many_arguments
|
12 |
//https://github.com/rust-lang/rust-clippy/issues/7202
|
13 |
#![allow(clippy::needless_collect)]
|
21 |
// This has false positives on trivial code.
|
22 |
#![allow(clippy::needless_collect)]
|
23 |
// Honestly the `..Default::default()` notation is more verbose, it requires
|
13 |
#![allow(
|
14 |
clippy::needless_collect,// test oee thing at a time
|
15 |
)]
|
10 |
#![deny(warnings)]
|
11 |
#![allow(clippy::needless_collect)]
|
510 |
{
|
511 |
#![allow(clippy::needless_collect)] // see https://github.com/rust-lang/rust-clippy/issues/6066
|
512 |
let mutations = operations_id
|
1 |
#![allow(clippy::needless_collect)] // Required for lifetime and type inference reasons, I think. At least, clippy's suggestion does not compile here.
|
7 |
clippy::must_use_candidate,
|
8 |
clippy::needless_collect,
|
9 |
clippy::new_without_default,
|
194 |
fn call_service(criterion: &mut Criterion) {
|
195 |
#![allow(clippy::needless_collect)]
|
496 |
// a unique borrow to self which is already borrowed by self.banks
|
497 |
#![allow(clippy::needless_collect)]
|
498 |
let mut prune_slots_time = Measure::start("prune_slots");
|
8 |
clippy::cast_possible_truncation,
|
9 |
clippy::needless_collect,
|
10 |
clippy::needless_pass_by_value,
|
1 |
#![allow(clippy::needless_collect, clippy::type_complexity)]
|
496 |
// a unique borrow to self which is already borrowed by self.banks
|
497 |
#![allow(clippy::needless_collect)]
|
498 |
let mut prune_slots_time = Measure::start("prune_slots");
|
2 |
// See <https://github.com/rust-lang/rust-clippy/issues/7512> and <https://github.com/rust-lang/rust-clippy/issues/7336>
|
3 |
#![allow(clippy::needless_collect)]
|
1 |
#![allow(clippy::needless_collect)]
|
2 |
use crate::{
|
570 |
// a unique borrow to self which is already borrowed by self.banks
|
571 |
#![allow(clippy::needless_collect)]
|
572 |
let mut prune_slots_time = Measure::start("prune_slots");
|