diff options
Diffstat (limited to 'src/apply.rs')
| -rw-r--r-- | src/apply.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/apply.rs b/src/apply.rs index abf579f..85c34d7 100644 --- a/src/apply.rs +++ b/src/apply.rs @@ -1,5 +1,7 @@ use anyhow::Result; use aws_sdk_route53::types::{Change, ChangeAction, ChangeBatch, ResourceRecordSet}; +// Needed until try_collect is stable, see <https://github.com/rust-lang/rust/issues/94047> +use itertools::Itertools; use crate::route53::Route53; @@ -67,11 +69,11 @@ where .build() }); - let change_records: Vec<_> = remove_records.chain(insert_records).collect(); + let change_records: Vec<_> = remove_records.chain(insert_records).try_collect()?; if !change_records.is_empty() { let change_batch = ChangeBatch::builder() .set_changes(Some(change_records)) - .build(); + .build()?; aws_context .route53() |
