Skip to content

Commit

Permalink
fix lint breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoh committed May 31, 2023
1 parent 77018c5 commit be66955
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 1 addition & 3 deletions aws/rust-runtime/aws-inlineable/src/endpoint_discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,10 @@ impl EndpointCache {

#[cfg(test)]
mod test {
use crate::endpoint_discovery::{create_cache, EndpointCache};
use aws_credential_types::time_source::TimeSource;
use crate::endpoint_discovery::create_cache;
use aws_smithy_async::rt::sleep::TokioSleep;
use aws_smithy_async::test_util::controlled_time_and_sleep;
use aws_smithy_async::time::SystemTimeSource;
use aws_smithy_http::endpoint::ResolveEndpointError;
use aws_smithy_types::endpoint::Endpoint;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;
Expand Down
6 changes: 6 additions & 0 deletions aws/rust-runtime/aws-inlineable/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,9 @@ pub mod http_body_checksum;

#[allow(dead_code)]
pub mod endpoint_discovery;

// just so docs work
#[allow(dead_code)]
/// allow docs to work
#[derive(Debug)]
pub struct Client;
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ class TimestreamDecorator : ClientCodegenDecorator {
/// Enable endpoint discovery for this client
///
/// This method MUST be called to construct a working client.
##[must_use]
pub async fn enable_endpoint_discovery(self) -> #{Result}<(Self, #{endpoint_discovery}::ReloadEndpoint), #{ResolveEndpointError}> {
let mut new_conf = self.conf().clone();
let sleep = self.conf().sleep_impl().expect("sleep impl must be provided");
Expand Down

0 comments on commit be66955

Please sign in to comment.