Skip to content

Commit 610b520

Browse files
committed
fix: move clippy allow to struct level for bon builders
Bon generates builder methods that also trigger the should_implement_trait lint
1 parent 09b5819 commit 610b520

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lambda-events/src/event/appsync

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ pub struct AppSyncIamIdentity {
6767
#[cfg_attr(feature = "builders", derive(Builder))]
6868
#[derive(Debug, Default, Clone, Eq, PartialEq, Deserialize, Serialize)]
6969
#[serde(rename_all = "camelCase")]
70+
#[allow(clippy::should_implement_trait)]
7071
pub struct AppSyncCognitoIdentity<T1 = Value>
7172
where
7273
T1: DeserializeOwned,
7374
T1: Serialize,
7475
{
7576
#[serde(default)]
76-
#[allow(clippy::should_implement_trait)]
7777
pub sub: Option<String>,
7878
#[serde(default)]
7979
pub issuer: Option<String>,
@@ -314,14 +314,14 @@ impl Default for AppSyncIdentity {
314314
#[non_exhaustive]
315315
#[cfg_attr(feature = "builders", derive(Builder))]
316316
#[derive(Debug, Default, Clone, Eq, PartialEq, Deserialize, Serialize)]
317+
#[allow(clippy::should_implement_trait)]
317318
pub struct AppSyncIdentityOIDC<T = Value>
318319
where
319320
T: Serialize + DeserializeOwned,
320321
{
321322
#[serde(bound = "")]
322323
pub claims: T,
323324
pub issuer: String,
324-
#[allow(clippy::should_implement_trait)]
325325
pub sub: String,
326326
/// Catchall to catch any additional fields that were present but not explicitly defined by this struct.
327327
/// Enabled with Cargo feature `catch-all-fields`.

0 commit comments

Comments
 (0)