180 |
let mut blocks = Vec::from(make_some_blocks::<2>()); // TODO: generate arbitrary blocks with attributes
|
181 |
#[allow(clippy::same_item_push)]
|
182 |
for _ in 0..6 {
|
474 |
/// [`find_program_address`]: Pubkey::find_program_address
|
475 |
#[allow(clippy::same_item_push)]
|
476 |
pub fn try_find_program_address(seeds: &[&[u8]], program_id: &Pubkey) -> Option<(Pubkey, u8)> {
|
576 |
// actually the clippy suggestions here are less readable for once
|
577 |
#[allow(clippy::same_item_push)]
|
578 |
for _ in segments_b {
|
398 |
let mut streams = Vec::with_capacity(4);
|
399 |
#[allow(clippy::same_item_push)] // suppress false positive
|
400 |
for _ in 0..4usize {
|
568 |
// actually the clippy suggestions here are less readable for once
|
569 |
#[allow(clippy::same_item_push)]
|
570 |
for _ in segments_b {
|
406 |
// actually the clippy suggestions here are less readable for once
|
407 |
#[allow(clippy::same_item_push)]
|
408 |
for _ in segments_b {
|
437 |
/// [`find_program_address`]: Pubkey::find_program_address
|
438 |
#[allow(clippy::same_item_push)]
|
439 |
pub fn try_find_program_address(seeds: &[&[u8]], program_id: &Pubkey) -> Option<(Pubkey, u8)> {
|
437 |
/// [`find_program_address`]: Pubkey::find_program_address
|
438 |
#[allow(clippy::same_item_push)]
|
439 |
pub fn try_find_program_address(seeds: &[&[u8]], program_id: &Pubkey) -> Option<(Pubkey, u8)> {
|
365 |
// actually the clippy suggestions here are less readable for once
|
366 |
#[allow(clippy::same_item_push)]
|
367 |
for _ in segments_b {
|
41 |
#[allow(clippy::same_item_push)]
|
42 |
pub fn decode<S: AsRef<str>>(raw_text: S) -> Result<Vec<u8>, Error> {
|
259 |
#[allow(clippy::same_item_push)]
|
260 |
#[test]
|
400 |
/// Tests that after `poll_ready` indicates capacity a channel can always send without waiting.
|
401 |
#[allow(clippy::same_item_push)]
|
402 |
#[test]
|
653 |
#[allow(clippy::same_item_push)]
|
654 |
pub fn create_ticks(num_ticks: u64, hashes_per_tick: u64, mut hash: Hash) -> Vec<Entry> {
|
664 |
#[allow(clippy::same_item_push)]
|
665 |
pub fn create_random_ticks(num_ticks: u64, max_hashes_per_tick: u64, mut hash: Hash) -> Vec<Entry> {
|
4045 |
#[test]
|
4046 |
#[allow(clippy::same_item_push)]
|
4047 |
fn test_push_epoch_slots_large() {
|
488 |
#[test]
|
489 |
#[allow(clippy::same_item_push)]
|
490 |
fn test_epoch_slots_fill_uncompressed_random_range() {
|
507 |
#[test]
|
508 |
#[allow(clippy::same_item_push)]
|
509 |
fn test_epoch_slots_fill_compressed_random_range() {
|
528 |
#[test]
|
529 |
#[allow(clippy::same_item_push)]
|
530 |
fn test_epoch_slots_fill_random_range() {
|
7820 |
#[test]
|
7821 |
#[allow(clippy::same_item_push)]
|
7822 |
fn test_get_last_hash() {
|
291 |
/// exceeded.
|
292 |
#[allow(clippy::same_item_push)]
|
293 |
pub fn try_find_program_address(seeds: &[&[u8]], program_id: &Pubkey) -> Option<(Pubkey, u8)> {
|
288 |
#[test]
|
289 |
#[allow(clippy::same_item_push)]
|
290 |
fn test_parse_stake_instruction() {
|
536 |
#[test]
|
537 |
#[allow(clippy::same_item_push)]
|
538 |
fn test_parse_stake_set_lockup() {
|
684 |
#[test]
|
685 |
#[allow(clippy::same_item_push)]
|
686 |
fn test_parse_stake_checked_instructions() {
|
203 |
#[test]
|
204 |
#[allow(clippy::same_item_push)]
|
205 |
fn test_parse_system_instruction() {
|
378 |
#[test]
|
379 |
#[allow(clippy::same_item_push)]
|
380 |
fn test_parse_system_instruction_nonce() {
|
480 |
#[test]
|
481 |
#[allow(clippy::same_item_push)]
|
482 |
fn test_parse_token() {
|
1085 |
#[test]
|
1086 |
#[allow(clippy::same_item_push)]
|
1087 |
fn test_token_ix_not_enough_keys() {
|
153 |
#[test]
|
154 |
#[allow(clippy::same_item_push)]
|
155 |
fn test_parse_vote_instruction() {
|
417 |
#[allow(clippy::same_item_push)]
|
418 |
fn process_instruction(instruction: &Instruction) -> Result<(), InstructionError> {
|
189 |
// False positive
|
190 |
#[allow(clippy::same_item_push)]
|
191 |
fn reference_fft(x: &[FieldElement], inverse: bool) -> Vec<FieldElement> {
|
266 |
#[allow(clippy::same_item_push)]
|
267 |
fn read_scan_data(&mut self) -> Result<Vec<u8>, JfifError> {
|
693 |
for line in s.split('\n') {
|
694 |
#[allow(clippy::same_item_push)]
|
695 |
for _ in 0..depth {
|
333 |
// seems like a bug in clippy to warn on this
|
334 |
#[allow(clippy::same_item_push)]
|
335 |
for _ in 0..count {
|
372 |
// seems like a bug in clippy to warn on this
|
373 |
#[allow(clippy::same_item_push)]
|
374 |
for _ in 0..count {
|
34 |
/// as an additional seed when calling `invoke_signed`
|
35 |
#[allow(clippy::same_item_push)]
|
36 |
pub fn find_noncanonical_program_address(seeds: &[&[u8]], program_id: &Pubkey) -> (Pubkey, u8) {
|
173 |
#[test]
|
174 |
#[allow(clippy::same_item_push)]
|
175 |
fn malformed_simple() {
|
7667 |
#[test]
|
7668 |
#[allow(clippy::same_item_push)]
|
7669 |
fn test_get_last_hash() {
|
696 |
#[allow(clippy::same_item_push)]
|
697 |
pub fn create_ticks(num_ticks: u64, hashes_per_tick: u64, mut hash: Hash) -> Vec<Entry> {
|
707 |
#[allow(clippy::same_item_push)]
|
708 |
pub fn create_random_ticks(num_ticks: u64, max_hashes_per_tick: u64, mut hash: Hash) -> Vec<Entry> {
|
474 |
/// [`find_program_address`]: Pubkey::find_program_address
|
475 |
#[allow(clippy::same_item_push)]
|
476 |
pub fn try_find_program_address(seeds: &[&[u8]], program_id: &Pubkey) -> Option<(Pubkey, u8)> {
|
762 |
#[test]
|
763 |
#[allow(clippy::same_item_push)]
|
764 |
fn test_parse_stake_set_lockup() {
|
1688 |
#[test]
|
1689 |
#[allow(clippy::same_item_push)]
|
1690 |
fn test_parse_token_v3() {
|
1694 |
#[test]
|
1695 |
#[allow(clippy::same_item_push)]
|
1696 |
fn test_parse_token_2022() {
|
2202 |
#[test]
|
2203 |
#[allow(clippy::same_item_push)]
|
2204 |
fn test_not_enough_keys_token_v3() {
|
2208 |
#[test]
|
2209 |
#[allow(clippy::same_item_push)]
|
2210 |
fn test_not_enough_keys_token_2022() {
|
279 |
#[allow(clippy::same_item_push)]
|
280 |
if first {
|
127 |
#[allow(clippy::same_item_push)]
|
128 |
fn make_programs_txs(txes: usize, hash: Hash) -> Vec<Transaction> {
|
336 |
#[allow(clippy::same_item_push)]
|
337 |
fn bench_process_entries(randomize_txs: bool, bencher: &mut Bencher) {
|
49 |
#[bench]
|
50 |
#[allow(clippy::same_item_push)]
|
51 |
fn bench_retransmitter(bencher: &mut Bencher) {
|
237 |
#[allow(clippy::too_many_arguments)]
|
238 |
#[allow(clippy::same_item_push)]
|
239 |
fn new(
|
862 |
#[allow(clippy::same_item_push)]
|
863 |
pub fn create_ticks(num_ticks: u64, hashes_per_tick: u64, mut hash: Hash) -> Vec<Entry> {
|
873 |
#[allow(clippy::same_item_push)]
|
874 |
pub fn create_random_ticks(num_ticks: u64, max_hashes_per_tick: u64, mut hash: Hash) -> Vec<Entry> {
|
4347 |
#[test]
|
4348 |
#[allow(clippy::same_item_push)]
|
4349 |
fn test_push_epoch_slots_large() {
|
487 |
#[test]
|
488 |
#[allow(clippy::same_item_push)]
|
489 |
fn test_epoch_slots_fill_uncompressed_random_range() {
|
506 |
#[test]
|
507 |
#[allow(clippy::same_item_push)]
|
508 |
fn test_epoch_slots_fill_compressed_random_range() {
|
527 |
#[test]
|
528 |
#[allow(clippy::same_item_push)]
|
529 |
fn test_epoch_slots_fill_random_range() {
|
8428 |
#[test]
|
8429 |
#[allow(clippy::same_item_push)]
|
8430 |
fn test_get_last_hash() {
|
474 |
/// [`find_program_address`]: Pubkey::find_program_address
|
475 |
#[allow(clippy::same_item_push)]
|
476 |
pub fn try_find_program_address(seeds: &[&[u8]], program_id: &Pubkey) -> Option<(Pubkey, u8)> {
|
762 |
#[test]
|
763 |
#[allow(clippy::same_item_push)]
|
764 |
fn test_parse_stake_set_lockup() {
|
1710 |
#[test]
|
1711 |
#[allow(clippy::same_item_push)]
|
1712 |
fn test_parse_token_v3() {
|
1716 |
#[test]
|
1717 |
#[allow(clippy::same_item_push)]
|
1718 |
fn test_parse_token_2022() {
|
2224 |
#[test]
|
2225 |
#[allow(clippy::same_item_push)]
|
2226 |
fn test_not_enough_keys_token_v3() {
|
2230 |
#[test]
|
2231 |
#[allow(clippy::same_item_push)]
|
2232 |
fn test_not_enough_keys_token_2022() {
|
547 |
// actually the clippy suggestions here are less readable for once
|
548 |
#[allow(clippy::same_item_push)]
|
549 |
for _ in segments_b {
|
178 |
//
|
179 |
#[allow(clippy::same_item_push)]
|
180 |
//
|
610 |
#[test]
|
611 |
#[allow(clippy::same_item_push)]
|
612 |
fn test_parse_stake_set_lockup() {
|
514 |
#[test]
|
515 |
#[allow(clippy::same_item_push)]
|
516 |
fn test_parse_token_v3() {
|
474 |
/// [`find_program_address`]: Pubkey::find_program_address
|
475 |
#[allow(clippy::same_item_push)]
|
476 |
pub fn try_find_program_address(seeds: &[&[u8]], program_id: &Pubkey) -> Option<(Pubkey, u8)> {
|
762 |
#[test]
|
763 |
#[allow(clippy::same_item_push)]
|
764 |
fn test_parse_stake_set_lockup() {
|
1713 |
#[test]
|
1714 |
#[allow(clippy::same_item_push)]
|
1715 |
fn test_parse_token_v3() {
|
1719 |
#[test]
|
1720 |
#[allow(clippy::same_item_push)]
|
1721 |
fn test_parse_token_2022() {
|
2227 |
#[test]
|
2228 |
#[allow(clippy::same_item_push)]
|
2229 |
fn test_not_enough_keys_token_v3() {
|
2233 |
#[test]
|
2234 |
#[allow(clippy::same_item_push)]
|
2235 |
fn test_not_enough_keys_token_2022() {
|
90 |
#[allow(clippy::same_item_push)]
|
91 |
pub(crate) fn do_pack(pak_str: &str, data: &VVal) -> Result<VVal, ParseError> {
|
202 |
// False positive
|
203 |
#[allow(clippy::same_item_push)]
|
204 |
fn reference_fft(x: &[FieldElement], inverse: bool) -> Vec<FieldElement> {
|
5 |
#![allow(unknown_lints)]
|
6 |
#![allow(clippy::op_ref, clippy::same_item_push, clippy::upper_case_acronyms)]
|
7 |
#![deny(rustdoc::broken_intra_doc_links)]
|
16 |
clippy::many_single_char_names,
|
17 |
clippy::same_item_push,
|
18 |
clippy::upper_case_acronyms
|
16 |
clippy::many_single_char_names,
|
17 |
clippy::same_item_push,
|
18 |
clippy::upper_case_acronyms
|
5 |
#![allow(unknown_lints)]
|
6 |
#![allow(clippy::op_ref, clippy::same_item_push, clippy::upper_case_acronyms)]
|
7 |
#![deny(rustdoc::broken_intra_doc_links)]
|
10 |
#![warn(clippy::pedantic)]
|
11 |
#![allow(clippy::same_item_push)]
|
12 |
#![deprecated(since = "0.2.4", note = "Use spin-rs instead")]
|
1 |
#![allow(clippy::same_item_push)]
|