diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-07-23 19:21:03 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-07-23 19:31:41 -0400 |
| commit | 4f568db968cced94eb282d1353e43625ee8811bb (patch) | |
| tree | fc823896fa00c4e19ef5c2a2bb1b703314bba5d2 /src/dns.rs | |
| parent | 5429d2ab901380a92535e31c8cce6646e9b11c4f (diff) | |
Retire the `result` module.
It didn't add much to have our own Result definition, over using `anyhow::Result` directly.
Diffstat (limited to 'src/dns.rs')
| -rw-r--r-- | src/dns.rs | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1,12 +1,10 @@ use std::convert::TryFrom; use std::fmt::Debug; -use anyhow::anyhow; +use anyhow::{anyhow, Result}; use aws_sdk_autoscaling::types::{AutoScalingGroup, Instance, LifecycleState}; use trust_dns_proto::rr::Name; -use crate::result::{Error, Result}; - #[derive(Debug)] pub struct AutoScalingGroupConfig { pub name: String, @@ -34,7 +32,7 @@ impl AutoScalingGroupConfig { } impl TryFrom<&AutoScalingGroup> for AutoScalingGroupConfig { - type Error = Error; + type Error = anyhow::Error; fn try_from(autoscaling_group: &AutoScalingGroup) -> Result<Self> { let name = autoscaling_group |
