From 62250001dc2d184aa6f8eb4f29628d8691ae0208 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 24 Jul 2024 18:41:12 -0400 Subject: Switch to futures for (stream).try_next(). This was an oversight; I missed that this trait existed! --- Cargo.lock | 1 - Cargo.toml | 1 - src/ec2.rs | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5c27cc5..9e970ef 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -111,7 +111,6 @@ dependencies = [ "clap", "futures", "tokio", - "tokio-stream", "trust-dns-proto", ] diff --git a/Cargo.toml b/Cargo.toml index 890b3dc..44fc594 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,5 +20,4 @@ aws-types = "0.56.1" clap = { version = "4.4.6", features = ["derive"] } futures = "0.3.28" tokio = { version = "1.33.0", features = ["full"] } -tokio-stream = "0.1.14" trust-dns-proto = "0.23.0" diff --git a/src/ec2.rs b/src/ec2.rs index 2035a64..67a098c 100644 --- a/src/ec2.rs +++ b/src/ec2.rs @@ -4,7 +4,7 @@ use anyhow::Result; use aws_sdk_ec2 as ec2; use aws_sdk_ec2::types::Filter; use aws_sdk_route53::types::{ResourceRecord, ResourceRecordSet, RrType}; -use tokio_stream::StreamExt; +use futures::stream::TryStreamExt; use trust_dns_proto::rr::Name; use crate::dns::absolute; -- cgit v1.2.3