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

Fix doc visibility issue with `HickoryDnsResolverBuilder` (#4296)

## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here -->
Noticed that the
[HickoryDnsResolverBuilder](https://docs.rs/aws-smithy-dns/0.1.0/aws_smithy_dns/struct.HickoryDnsResolver.html#method.builder)
was not visible in the `aws-smithy-dns` docs, this fixes that.

## Testing
<!--- Please describe in detail how you tested your changes -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->
Ran `cargo doc --all-features` locally and was able to see the builder
type.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent 6057f062
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -380,7 +380,7 @@ dependencies = [

[[package]]
name = "aws-smithy-dns"
version = "0.1.1"
version = "0.1.2"
dependencies = [
 "aws-smithy-runtime-api",
 "criterion",
+1 −1
Original line number Diff line number Diff line
[package]
name = "aws-smithy-dns"
version = "0.1.1"
version = "0.1.2"
authors = [
    "AWS Rust SDK Team <aws-sdk-rust@amazon.com>",
]
+2 −0
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ impl ResolveDns for HickoryDnsResolver {
    }
}

/// Builder for [HickoryDnsResolver]
pub struct HickoryDnsResolverBuilder {
    nameservers: Option<Nameservers>,
    timeout: Option<Duration>,
@@ -121,6 +122,7 @@ impl HickoryDnsResolverBuilder {
        self
    }

    /// Build a [HickoryDnsResolver]
    pub fn build(self) -> HickoryDnsResolver {
        let mut builder = if let Some(nameservers) = self.nameservers {
            let nameserver_config =
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
//! Built-in DNS resolver implementations for smithy-rs clients.

#[cfg(all(feature = "hickory-dns", not(target_family = "wasm")))]
mod hickory;
pub mod hickory;

#[cfg(all(feature = "hickory-dns", not(target_family = "wasm")))]
pub use hickory::HickoryDnsResolver;