Skip to content

Commit

Permalink
Add #[inline] to Debug impl
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Mar 15, 2024
1 parent adec693 commit f1f411c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl<T: Primitive> From<T> for AtomicMaybeUninit<T> {
}

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

0 comments on commit f1f411c

Please sign in to comment.