mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Add allow attributes for intentional patterns in pvverify and pvsecret.
Command line used to get the findings:
$ clippy --all-features -- --cap-lints=warn
...
help: remove this field
--> pvverify/src/cli.rs:22:5
|
22 | version: (),
| ^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
= note: `#[warn(clippy::manual_non_exhaustive)]` on by default
help: use the `#[non_exhaustive]` attribute instead
|
16 + #[non_exhaustive]
17 | pub struct CliOptions {
|
warning: struct `AddSecretOptComb` is never constructed
--> pvsecret/src/cli.rs:313:12
|
313 | pub struct AddSecretOptComb<'a> {
| ^^^^^^^^^^^^^^^^
|
= note: `-W dead-code` implied by `-W unused`
= help: to override `-W unused` add `#[expect(dead_code)]` or `#[allow(dead_code)]`
warning: struct `ListSecretOptComb` is never constructed
--> pvsecret/src/cli.rs:355:12
|
355 | pub struct ListSecretOptComb<'a> {
| ^^^^^^^^^^^^^^^^^
warning: struct `RetrSecretOptionsComb` is never constructed
--> pvsecret/src/cli.rs:490:12
|
490 | pub struct RetrSecretOptionsComb<'a> {
| ^^^^^^^^^^^^^^^^^^^^^
Assisted-by: IBM Bob:1.0.4
Reviewed-by: Timo Keller <tkeller@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Marc Hartmayer <marc@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>