afterburn
afterburn copied to clipboard
Latest MSRV lint test has found some dead_code sections
Evaluate if they can be safely removed or continue to be ignored.
cargo clippy --all-targets -- -D warnings
Checking afterburn v5.5.1 (/home/spresti/workspace/afterburn)
error: fields `fqdn` and `public_keys` are never read
--> src/providers/ibmcloud_classic/mod.rs:49:9
|
46 | pub struct MetaDataJSON {
| ------------ fields in this struct
...
49 | pub fqdn: String,
| ^^^^
...
57 | pub public_keys: HashMap<String, String>,
| ^^^^^^^^^^^
|
= note: `MetaDataJSON` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
error: fields `id` and `kind` are never read
--> src/providers/ibmcloud_classic/mod.rs:81:9
|
79 | pub struct NetNetworkJSON {
| -------------- fields in this struct
80 | /// Unique network ID.
81 | pub id: String,
| ^^
...
84 | pub kind: String,
| ^^^^
|
= note: `NetNetworkJSON` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: field `availability_zone` is never read
--> src/providers/openstack/configdrive.rs:43:9
|
39 | pub struct MetadataOpenstackJSON {
| --------------------- field in this struct
...
43 | pub availability_zone: Option<String>,
| ^^^^^^^^^^^^^^^^^
|
= note: `MetadataOpenstackJSON` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: field `fqdn` is never read
--> src/providers/powervs/mod.rs:47:9
|
44 | pub struct MetaDataJSON {
| ------------ field in this struct
...
47 | pub fqdn: String,
| ^^^^
|
= note: `MetaDataJSON` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: field `fqdn` is never read
--> src/providers/ibmcloud_classic/mod.rs:49:9
|
46 | pub struct MetaDataJSON {
| ------------ field in this struct
...
49 | pub fqdn: String,
| ^^^^
|
= note: `MetaDataJSON` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
error: could not compile `afterburn` (bin "afterburn") due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `afterburn` (bin "afterburn" test) due to 3 previous errors