Skip to content

Commit

Permalink
lint: silence deadcode warnings
Browse files Browse the repository at this point in the history
Apprently we have had deadcode which is now being picked up by latest
MSRV lint. Created issue to evaluate it coreos#1085.
  • Loading branch information
prestist committed Jun 14, 2024
1 parent cbe8202 commit b137d44
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/providers/ibmcloud_classic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pub struct IBMClassicProvider {
pub struct MetaDataJSON {
/// Fully-Qualified Domain Name (FQDN).
#[serde(rename = "hostname")]
#[allow(dead_code)]
pub fqdn: String,
/// Local hostname.
#[serde(rename = "name")]
Expand All @@ -54,6 +55,7 @@ pub struct MetaDataJSON {
#[serde(rename = "uuid")]
pub instance_id: String,
/// SSH public keys.
#[allow(dead_code)]
pub public_keys: HashMap<String, String>,
}

Expand All @@ -78,9 +80,11 @@ pub struct NetLinkJSON {
#[derive(Debug, Deserialize)]
pub struct NetNetworkJSON {
/// Unique network ID.
#[allow(dead_code)]
pub id: String,
/// Network type (e.g. `ipv4`)
#[serde(rename = "type")]
#[allow(dead_code)]
pub kind: String,
/// Reference to the underlying interface (see `NetLinkJSON.id`)
pub link: String,
Expand Down
1 change: 1 addition & 0 deletions src/providers/openstack/configdrive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub struct MetadataOpenstackJSON {
/// Instance ID.
pub uuid: Option<String>,
/// Availability zone.
#[allow(dead_code)]
pub availability_zone: Option<String>,
/// Local hostname.
pub hostname: Option<String>,
Expand Down
1 change: 1 addition & 0 deletions src/providers/powervs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub struct PowerVSProvider {
pub struct MetaDataJSON {
/// Fully-Qualified Domain Name (FQDN).
#[serde(rename = "hostname")]
#[allow(dead_code)]
pub fqdn: String,
/// Local hostname.
#[serde(rename = "name")]
Expand Down

0 comments on commit b137d44

Please sign in to comment.