Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed Jul 2, 2024
1 parent 86cd66c commit 90c274b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cloud/digitalocean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl Provisioner for DigitalOceanProvisioner {
let mut status = status.clone();

if let Some(ip) = droplet.networks.v4.iter().find(|net| net.ntype == "public") {
status.ip = ip.ip_address.clone();
status.ip.clone_from(&ip.ip_address)
}

Ok(status)
Expand Down
2 changes: 1 addition & 1 deletion src/cloud/linode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl Provisioner for LinodeProvisioner {
let mut status = status.clone();

if let Some(ip) = instance?.ipv4.first() {
status.ip = ip.to_owned();
status.ip.clone_from(ip);
}

Ok(status)
Expand Down
3 changes: 2 additions & 1 deletion src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ async fn select_exit_node_local(
})
.collect::<Vec<ExitNode>>()
.first()
.ok_or(ReconcileError::NoAvailableExitNodes).cloned()
.ok_or(ReconcileError::NoAvailableExitNodes)
.cloned()
}
}

Expand Down

0 comments on commit 90c274b

Please sign in to comment.