Unverified Commit 13f00bdc authored by Landon James's avatar Landon James Committed by GitHub
Browse files

Add `Clone` to `HickoryDnsResolver` and `TokioDnsResolver` (#4289)

## Description
<!--- Describe your changes in detail -->
The `HickoryDnsResolver` and `TokioDnsResolver` were not `Clone` making
it impossible to use them in the http_client builder's
`build_with_resolver` method.

## Checklist
<!--- If a checkbox below is not applicable, then please DELETE it
rather than leaving it unchecked -->
- [x] For changes to the smithy-rs codegen or runtime crates, I have
created a changelog entry Markdown file in the `.changelog` directory,
specifying "client," "server," or both in the `applies_to` key.


----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent 5550f445
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
---
applies_to: ["client"]
authors: ["landonxjames"]
references: ["smithy-rs#4274"]
breaking: false
new_feature: false
bug_fix: true
---
The `HickoryDnsResolver` and `TokioDnsResolver` were not `Clone` making it impossible to use them in the http_client builder's `build_with_resolver` method.
+2 −2
Original line number Diff line number Diff line
@@ -380,7 +380,7 @@ dependencies = [

[[package]]
name = "aws-smithy-dns"
version = "0.1.0"
version = "0.1.1"
dependencies = [
 "aws-smithy-runtime-api",
 "criterion",
@@ -630,7 +630,7 @@ dependencies = [

[[package]]
name = "aws-smithy-runtime"
version = "1.9.1"
version = "1.9.2"
dependencies = [
 "approx",
 "aws-smithy-async",
+1 −1
Original line number Diff line number Diff line
[package]
name = "aws-smithy-dns"
version = "0.1.0"
version = "0.1.1"
authors = [
    "AWS Rust SDK Team <aws-sdk-rust@amazon.com>",
]
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ use hickory_resolver::{
///
/// This resolver requires a [tokio] runtime to function and isn't available for WASM targets.
#[non_exhaustive]
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct HickoryDnsResolver {
    resolver: Resolver<TokioConnectionProvider>,
}
+1 −1
Original line number Diff line number Diff line
[package]
name = "aws-smithy-runtime"
version = "1.9.1"
version = "1.9.2"
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Zelda Hessler <zhessler@amazon.com>"]
description = "The new smithy runtime crate"
edition = "2021"
Loading