Skip to content

Implement PNI

Implement PNI #837

GitHub Actions / clippy succeeded Jan 30, 2024 in 0s

clippy

2 warnings

Details

Results

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

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check warning on line 151 in libsignal-service/src/account_manager.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: using `clone` on type `PublicKey` which implements the `Copy` trait
   --> libsignal-service/src/account_manager.rs:151:13
    |
151 |             identity_key_pair.identity_key().public_key().clone();
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*identity_key_pair.identity_key().public_key()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
    = note: `#[warn(clippy::clone_on_copy)]` on by default

Check warning on line 494 in libsignal-service/src/account_manager.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variable does not need to be mutable

warning: variable does not need to be mutable
   --> libsignal-service/src/account_manager.rs:494:13
    |
494 |         let mut device_messages =
    |             ----^^^^^^^^^^^^^^^
    |             |
    |             help: remove this `mut`
    |
    = note: `#[warn(unused_mut)]` on by default