Skip to content

feat: preparations for public #7

feat: preparations for public

feat: preparations for public #7

GitHub Actions / clippy failed Sep 25, 2024 in 0s

clippy

5 errors

Details

Results

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

Versions

  • rustc 1.81.0 (eeb90cda1 2024-09-04)
  • cargo 1.81.0 (2dbb1af80 2024-08-20)
  • clippy 0.1.81 (eeb90cd 2024-09-04)

Annotations

Check failure on line 235 in crates/valv/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting to the same type is unnecessary (`u32` -> `u32`)

error: casting to the same type is unnecessary (`u32` -> `u32`)
   --> crates/valv/src/lib.rs:235:45
    |
235 |         encrypted_result.extend_from_slice(&(key_version.version as u32).to_be_bytes());
    |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `key_version.version`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
    = note: `-D clippy::unnecessary-cast` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::unnecessary_cast)]`

Check failure on line 16 in crates/valv/src/storage/interface.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

methods `get_key_versions` and `update_key_version` are never used

error: methods `get_key_versions` and `update_key_version` are never used
  --> crates/valv/src/storage/interface.rs:16:14
   |
6  | pub trait ValvStorage {
   |           ----------- methods in this trait
...
16 |     async fn get_key_versions(
   |              ^^^^^^^^^^^^^^^^
...
27 |     async fn update_key_version(
   |              ^^^^^^^^^^^^^^^^^^
   |
   = note: `-D dead-code` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(dead_code)]`

Check failure on line 258 in crates/valv/src/storage/fdb.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `version`

error: unused variable: `version`
   --> crates/valv/src/storage/fdb.rs:258:9
    |
258 |         version: internal::KeyVersion,
    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_version`

Check failure on line 257 in crates/valv/src/storage/fdb.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `version_id`

error: unused variable: `version_id`
   --> crates/valv/src/storage/fdb.rs:257:9
    |
257 |         version_id: u32,
    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_version_id`

Check failure on line 256 in crates/valv/src/storage/fdb.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `key_id`

error: unused variable: `key_id`
   --> crates/valv/src/storage/fdb.rs:256:9
    |
256 |         key_id: &str,
    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_id`