Skip to content

Commit 8df943f

Browse files
committed
Fix lint
1 parent cf3f3a5 commit 8df943f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/auth/aws.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ async fn authenticate_stream_inner(
224224
}
225225

226226
/// Contains the credentials for MONGODB-AWS authentication.
227+
// RUST-1529 note: dead_code tag was added to avoid unused warnings for expiration field
228+
#[allow(dead_code)]
227229
#[derive(Clone, Debug, Deserialize)]
228230
#[serde(rename_all = "PascalCase")]
229231
pub(crate) struct AwsCredential {
@@ -249,7 +251,6 @@ fn non_empty(s: Option<String>) -> Option<String> {
249251
}
250252
}
251253

252-
#[allow(dead_code)]
253254
impl AwsCredential {
254255
/// Derives the credentials for an authentication attempt given the set of credentials the user
255256
/// passed in.

0 commit comments

Comments
 (0)