diff options
Diffstat (limited to 'src/ec2.rs')
| -rw-r--r-- | src/ec2.rs | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -3,10 +3,9 @@ use std::collections::HashSet; use anyhow::Result; use aws_sdk_ec2 as ec2; use aws_sdk_ec2::types::Filter; -use aws_sdk_route53::types::{ResourceRecordSet, RrType}; +use aws_sdk_route53::types::RrType; -use crate::hashable::Hashable; -use crate::route53::Target; +use crate::route53::{ResourceRecordSet, Target}; pub trait Ec2 { fn ec2(&self) -> &ec2::Client; @@ -17,7 +16,7 @@ pub async fn asg_instances_proposal<C>( target: &Target, asg_name: &str, live_instance_ids: &[String], -) -> Result<HashSet<Hashable<ResourceRecordSet>>> +) -> Result<HashSet<ResourceRecordSet>> where C: Ec2, { @@ -70,6 +69,6 @@ where Ok(ip4_proposal .into_iter() .chain(ip6_proposal.into_iter()) - .map(Hashable::from) + .map(Into::into) .collect()) } |
