Skip to content

Commit 09b5819

Browse files
committed
fix: allow clippy::should_implement_trait for 'sub' fields
The 'sub' field represents JWT subject claims in AppSync identity contexts, not mathematical subtraction operations. This is a false positive.
1 parent 86cd174 commit 09b5819

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • lambda-events/src/event/appsync

lambda-events/src/event/appsync/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ where
7373
T1: Serialize,
7474
{
7575
#[serde(default)]
76+
#[allow(clippy::should_implement_trait)]
7677
pub sub: Option<String>,
7778
#[serde(default)]
7879
pub issuer: Option<String>,
@@ -320,6 +321,7 @@ where
320321
#[serde(bound = "")]
321322
pub claims: T,
322323
pub issuer: String,
324+
#[allow(clippy::should_implement_trait)]
323325
pub sub: String,
324326
/// Catchall to catch any additional fields that were present but not explicitly defined by this struct.
325327
/// Enabled with Cargo feature `catch-all-fields`.

0 commit comments

Comments
 (0)