Skip to content

Commit 37b674f

Browse files
committed
Fix Rust 1.90 clippy lints
1 parent c2dd24b commit 37b674f

5 files changed

Lines changed: 6 additions & 2 deletions

File tree

aws/rust-runtime/aws-config/src/profile/credentials/repr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,12 +632,14 @@ mod tests {
632632
}
633633

634634
#[derive(Deserialize, Debug, PartialEq, Eq)]
635+
#[allow(dead_code)]
635636
enum TestOutput {
636637
ProfileChain(Vec<Provider>),
637638
Error(String),
638639
}
639640

640641
#[derive(Deserialize, Debug, Eq, PartialEq)]
642+
#[allow(dead_code)]
641643
enum Provider {
642644
AssumeRole {
643645
role_arn: String,

aws/rust-runtime/aws-config/src/test_case.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ impl From<aws_credential_types::Credentials> for Credentials {
8484
/// Token for use in test cases. These implement Serialize/Deserialize and have a
8585
/// non-hidden debug implementation.
8686
#[derive(Deserialize, Debug, Eq, PartialEq)]
87+
#[allow(dead_code)]
8788
pub(crate) struct Token {
8889
pub(crate) token: String,
8990
pub(crate) expiration: Option<String>,

rust-runtime/aws-smithy-http-client/src/client/dns.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use std::vec;
1313

1414
/// A bridge that allows our `ResolveDns` trait to work with Hyper's `Resolver` interface (based on tower)
1515
#[derive(Clone)]
16+
#[allow(dead_code)]
1617
pub(crate) struct HyperUtilResolver<R> {
1718
pub(crate) resolver: R,
1819
}

tools/ci-build/publisher/src/subcommand/fix_manifests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl VersionView<'_> {
108108
}
109109

110110
impl Versions {
111-
fn published(&self) -> VersionView {
111+
fn published(&self) -> VersionView<'_> {
112112
VersionView(self, FilterType::PublishedOnly)
113113
}
114114
}

tools/ci-cdk/canary-lambda/src/latest/wasm_canary.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct WasiHostCtx {
3030
}
3131

3232
impl wasmtime_wasi::WasiView for WasiHostCtx {
33-
fn ctx(&mut self) -> wasmtime_wasi::WasiCtxView {
33+
fn ctx(&mut self) -> wasmtime_wasi::WasiCtxView<'_> {
3434
wasmtime_wasi::WasiCtxView {
3535
ctx: &mut self.preview2_ctx,
3636
table: &mut self.preview2_table,

0 commit comments

Comments
 (0)