Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
arcln committed Oct 24, 2023
1 parent 33cb915 commit 0c1fe0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/providers/proxmox/cloudconfig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl MetadataProvider for ProxmoxCloudConfig {
.network_config
.config
.iter()
.filter(|config: &&ProxmoxCloudNetworkConfigEntry| config.network_type == "nameserver")
.filter(|config| config.network_type == "nameserver")
.collect::<Vec<_>>();

if nameservers.len() > 1 {
Expand All @@ -153,7 +153,7 @@ impl MetadataProvider for ProxmoxCloudConfig {
.network_config
.config
.iter()
.filter(|config: &&ProxmoxCloudNetworkConfigEntry| config.network_type == "physical")
.filter(|config| config.network_type == "physical")
.map(|entry| entry.to_interface())
.collect::<Result<Vec<_>, _>>()?;

Expand Down Expand Up @@ -243,7 +243,7 @@ impl ProxmoxCloudNetworkConfigEntry {
}

if let Some(mac) = &self.mac_address {
iface.mac_address = Some(MacAddr::from_str(&mac)?);
iface.mac_address = Some(MacAddr::from_str(mac)?);
}

Ok(iface)
Expand Down

0 comments on commit 0c1fe0c

Please sign in to comment.