]> git.proxmox.com Git - proxmox-offline-mirror.git/commit
verifier: elide explicit lifetime
authorMaximiliano Sandoval <m.sandoval@proxmox.com>
Wed, 14 Feb 2024 09:27:30 +0000 (10:27 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Feb 2024 11:13:33 +0000 (12:13 +0100)
commit373a3ed3e0a4db4a631bf5b3f8f42a02ca8f77ff
tree437fbe1bafcbc4f98c017c3548f30b64e68311c3
parenta3fe64206251f81cfb8e5b4082c9d366973065d1
verifier: elide explicit lifetime

Fixes the clippy lint:

```
warning: the following explicit lifetimes could be elided: 'msg
  --> src/helpers/verifier.rs:93:32
   |
93 | pub(crate) fn verify_signature<'msg>(
   |                                ^^^^
94 |     msg: &'msg [u8],
   |           ^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
   = note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
   |
93 ~ pub(crate) fn verify_signature(
94 ~     msg: &[u8],
   |
```

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
src/helpers/verifier.rs