1
Fork 0

Inline attrs.

This commit is contained in:
Nicholas Nethercote 2022-08-29 20:25:48 +10:00
parent c768617f6f
commit 78f83f0b46

View file

@ -279,6 +279,7 @@ macro_rules! impl_has_attrs {
impl HasAttrs for $T {
const SUPPORTS_CUSTOM_INNER_ATTRS: bool = $inner;
#[inline]
fn attrs(&self) -> &[Attribute] {
&self.attrs
}