Skip to content

Commit f1f411c

Browse files
committed
Add #[inline] to Debug impl
rust-lang/rust#117727
1 parent adec693 commit f1f411c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl<T: Primitive> From<T> for AtomicMaybeUninit<T> {
133133
}
134134

135135
impl<T: Primitive> fmt::Debug for AtomicMaybeUninit<T> {
136-
#[allow(clippy::missing_inline_in_public_items)] // fmt is not hot path
136+
#[inline] // fmt is not hot path, but #[inline] on fmt seems to still be useful: https://github.com/rust-lang/rust/pull/117727
137137
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
138138
f.write_str(core::any::type_name::<Self>())
139139
}

0 commit comments

Comments
 (0)