diff --git a/relay-server/src/envelope/attachment.rs b/relay-server/src/envelope/attachment.rs index 22c9614f2e..6ab2f01ae8 100644 --- a/relay-server/src/envelope/attachment.rs +++ b/relay-server/src/envelope/attachment.rs @@ -77,7 +77,7 @@ impl fmt::Display for AttachmentType { /// Represents the payload of an [attachment placeholder item]( /// https://develop.sentry.dev/sdk/telemetry/attachments/#attachment-placeholder-item). -#[cfg_attr(not(sentry), expect(unused))] +#[cfg_attr(all(not(sentry), not(feature = "processing")), expect(unused))] #[derive(Serialize, Deserialize)] pub struct AttachmentPlaceholder<'a> { #[serde(borrow)]