diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-07-24 19:26:45 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-07-24 19:26:45 -0400 |
| commit | e872bcdc978283b45da22a4de5ed195dce613a71 (patch) | |
| tree | 6a7c7813e52e5c546cc6f187e12b5f5bdca42f6e /src/apply.rs | |
| parent | 77642df3e17b5272617c48832f37b7ab3dd6f27b (diff) | |
Upgrade AWS libraries.
This comes with some substantial removals, because the AWS libs no longer treat every last field as optional when it's inappropriate to do so. Hooray!
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() |
