fix clippy

This commit is contained in:
Jana Dönszelmann
2025-06-10 08:48:56 +02:00
parent 5ab5f8a24a
commit 780b902111
6 changed files with 13 additions and 18 deletions

View File

@@ -216,25 +216,20 @@ pub enum AttributeKind {
ConstStabilityIndirect,
/// Represents [`#[deprecated]`](https://doc.rust-lang.org/stable/reference/attributes/diagnostics.html#the-deprecated-attribute).
Deprecation {
deprecation: Deprecation,
span: Span,
},
Deprecation { deprecation: Deprecation, span: Span },
/// Represents [`#[doc]`](https://doc.rust-lang.org/stable/rustdoc/write-documentation/the-doc-attribute.html).
DocComment {
style: AttrStyle,
kind: CommentKind,
span: Span,
comment: Symbol,
},
DocComment { style: AttrStyle, kind: CommentKind, span: Span, comment: Symbol },
/// Represents `#[inline]` and `#[rustc_force_inline]`.
Inline(InlineAttr, Span),
/// Represents `#[rustc_macro_transparency]`.
Inline(InlineAttr, Span),
MacroTransparency(Transparency),
/// Represents [`#[repr]`](https://doc.rust-lang.org/stable/reference/type-layout.html#representations).
Repr(ThinVec<(ReprAttr, Span)>),
/// Represents `#[stable]`, `#[unstable]` and `#[rustc_allowed_through_unstable_modules]`.
Stability {
stability: Stability,