Skip to content

use cache and reuse build and deps in the ci #16

use cache and reuse build and deps in the ci

use cache and reuse build and deps in the ci #16

GitHub Actions / clippy failed Dec 22, 2023 in 0s

clippy

37 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 37
Warning 0
Note 0
Help 0

Versions

  • rustc 1.70.0 (90c541806 2023-05-31)
  • cargo 1.70.0 (ec8a8a0ca 2023-04-25)
  • clippy 0.1.70 (90c5418 2023-05-31)

Annotations

Check failure on line 369 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Option<(u64, u64, Pubkey)>` which implements the `Copy` trait

error: using `clone` on type `Option<(u64, u64, Pubkey)>` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:369:25
    |
369 |         last_seen_key = last_key.clone();
    |                         ^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `last_key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 352 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `(u64, u64, Pubkey)` which implements the `Copy` trait

error: using `clone` on type `(u64, u64, Pubkey)` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:352:28
    |
352 |         let expected_key = keys[i * 1000 + 999].clone();
    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `keys[i * 1000 + 999]`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 345 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Option<(u64, u64, Pubkey)>` which implements the `Copy` trait

error: using `clone` on type `Option<(u64, u64, Pubkey)>` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:345:29
    |
345 |     let mut last_seen_key = last_key.clone();
    |                             ^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `last_key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 343 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:343:30
    |
343 |         keys.push((4 + i, i, key.clone()));
    |                              ^^^^^^^^^^^ help: try removing the `clone` call: `key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 342 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:342:34
    |
342 |         storage.asset_updated(i, key.clone()).unwrap();
    |                                  ^^^^^^^^^^^ help: try removing the `clone` call: `key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 329 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:329:31
    |
329 |     let expected_key = (3, 5, key.clone());
    |                               ^^^^^^^^^^^ help: try removing the `clone` call: `key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 316 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:316:30
    |
316 |     storage.asset_updated(5, key.clone()).unwrap();
    |                              ^^^^^^^^^^^ help: try removing the `clone` call: `key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 307 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:307:31
    |
307 |     let expected_key = (2, 2, PUBKEY_OF_TWOS.clone());
    |                               ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `PUBKEY_OF_TWOS`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 289 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:289:17
    |
289 |             (2, PUBKEY_OF_TWOS.clone()),
    |                 ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `PUBKEY_OF_TWOS`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 288 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:288:17
    |
288 |             (4, DEFAULT_PUBKEY_OF_ONES.clone()),
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `DEFAULT_PUBKEY_OF_ONES`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 272 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:272:31
    |
272 |     let expected_key = (4, 5, PUBKEY_OF_TWOS.clone());
    |                               ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `PUBKEY_OF_TWOS`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 264 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:264:17
    |
264 |             (5, PUBKEY_OF_TWOS.clone()),         // seq = 4
    |                 ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `PUBKEY_OF_TWOS`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 263 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:263:17
    |
263 |             (5, DEFAULT_PUBKEY_OF_ONES.clone()), // seq = 3
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `DEFAULT_PUBKEY_OF_ONES`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 262 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:262:17
    |
262 |             (2, DEFAULT_PUBKEY_OF_ONES.clone()), // seq = 2
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `DEFAULT_PUBKEY_OF_ONES`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 261 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:261:17
    |
261 |             (4, DEFAULT_PUBKEY_OF_ONES.clone()), // seq = 1
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `DEFAULT_PUBKEY_OF_ONES`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 235 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:235:31
    |
235 |     let expected_key = (4, 5, PUBKEY_OF_TWOS.clone());
    |                               ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `PUBKEY_OF_TWOS`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 223 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:223:53
    |
223 |         .fetch_asset_updated_keys(None, Some((4, 5, PUBKEY_OF_TWOS.clone())), 10, None)
    |                                                     ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `PUBKEY_OF_TWOS`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 212 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:212:31
    |
212 |     let expected_key = (1, 4, DEFAULT_PUBKEY_OF_ONES.clone());
    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `DEFAULT_PUBKEY_OF_ONES`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 203 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:203:53
    |
203 |         .fetch_asset_updated_keys(None, Some((1, 4, DEFAULT_PUBKEY_OF_ONES.clone())), 10, None)
    |                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `DEFAULT_PUBKEY_OF_ONES`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 196 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:196:53
    |
196 |         .fetch_asset_updated_keys(None, Some((0, 2, DEFAULT_PUBKEY_OF_ONES.clone())), 10, None)
    |                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `DEFAULT_PUBKEY_OF_ONES`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 189 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:189:17
    |
189 |             (5, PUBKEY_OF_TWOS.clone()),         // seq = 4
    |                 ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `PUBKEY_OF_TWOS`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 188 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:188:17
    |
188 |             (5, DEFAULT_PUBKEY_OF_ONES.clone()), // seq = 3
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `DEFAULT_PUBKEY_OF_ONES`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 187 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:187:17
    |
187 |             (2, DEFAULT_PUBKEY_OF_ONES.clone()), // seq = 2
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `DEFAULT_PUBKEY_OF_ONES`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 186 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:186:17
    |
186 |             (4, DEFAULT_PUBKEY_OF_ONES.clone()), // seq = 1
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `DEFAULT_PUBKEY_OF_ONES`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Check failure on line 172 in rocks-db/tests/batch_client_integration_tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Pubkey` which implements the `Copy` trait

error: using `clone` on type `Pubkey` which implements the `Copy` trait
   --> rocks-db/tests/batch_client_integration_tests.rs:172:31
    |
172 |     let expected_key = (2, 2, DEFAULT_PUBKEY_OF_ONES.clone());
    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `DEFAULT_PUBKEY_OF_ONES`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy