From b8d09de843a8fbd6c443d7698c36de292130b53a Mon Sep 17 00:00:00 2001 From: John DiSanti Date: Wed, 2 Nov 2022 18:12:57 -0700 Subject: [PATCH] Fix clippy lints for the canary Lambda --- tools/ci-cdk/canary-lambda/src/s3_canary.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ci-cdk/canary-lambda/src/s3_canary.rs b/tools/ci-cdk/canary-lambda/src/s3_canary.rs index 72939049436..29a571334c4 100644 --- a/tools/ci-cdk/canary-lambda/src/s3_canary.rs +++ b/tools/ci-cdk/canary-lambda/src/s3_canary.rs @@ -8,7 +8,7 @@ use crate::{mk_canary, CanaryEnv}; use anyhow::Context; use aws_sdk_s3 as s3; use s3::error::{GetObjectError, GetObjectErrorKind}; -use s3::types::{ByteStream, SdkError}; +use s3::types::ByteStream; use uuid::Uuid; const METADATA_TEST_VALUE: &str = "some value"; @@ -44,7 +44,7 @@ pub async fn s3_canary(client: s3::Client, s3_bucket_name: String) -> anyhow::Re } => { // good } - err @ _ => Err(err).context("unexpected s3::GetObject failure")?, + err => Err(err).context("unexpected s3::GetObject failure")?, }, }