File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1406,15 +1406,15 @@ impl<T> From<*mut T> for AtomicPtr<T> {
1406
1406
}
1407
1407
1408
1408
impl <T > fmt:: Debug for AtomicPtr <T > {
1409
- #[ allow ( clippy :: missing_inline_in_public_items ) ] // fmt is not hot path
1409
+ #[ inline ] // fmt is not hot path, but #[inline] on fmt seems to still be useful: https://github.com/rust-lang/rust/pull/117727
1410
1410
fn fmt( & self , f: & mut fmt:: Formatter <' _>) -> fmt:: Result {
1411
1411
// std atomic types use Relaxed in Debug::fmt: https://github.com/rust-lang/rust/blob/1.70.0/library/core/src/sync/atomic.rs#L2024
1412
1412
fmt:: Debug :: fmt( & self . load( Ordering :: Relaxed ) , f)
1413
1413
}
1414
1414
}
1415
1415
1416
1416
impl <T > fmt:: Pointer for AtomicPtr <T > {
1417
- #[ allow ( clippy :: missing_inline_in_public_items ) ] // fmt is not hot path
1417
+ #[ inline ] // fmt is not hot path, but #[inline] on fmt seems to still be useful: https://github.com/rust-lang/rust/pull/117727
1418
1418
fn fmt( & self , f: & mut fmt:: Formatter <' _>) -> fmt:: Result {
1419
1419
// std atomic types use Relaxed in Debug::fmt: https://github.com/rust-lang/rust/blob/1.70.0/library/core/src/sync/atomic.rs#L2024
1420
1420
fmt:: Pointer :: fmt( & self . load( Ordering :: Relaxed ) , f)
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ macro_rules! const_fn {
130
130
macro_rules! impl_debug_and_serde {
131
131
( $atomic_type: ident) => {
132
132
impl fmt:: Debug for $atomic_type {
133
- #[ allow ( clippy :: missing_inline_in_public_items ) ] // fmt is not hot path
133
+ #[ inline ] // fmt is not hot path, but #[inline] on fmt seems to still be useful: https://github.com/rust-lang/rust/pull/117727
134
134
fn fmt( & self , f: & mut fmt:: Formatter <' _>) -> fmt:: Result {
135
135
// std atomic types use Relaxed in Debug::fmt: https://github.com/rust-lang/rust/blob/1.70.0/library/core/src/sync/atomic.rs#L2024
136
136
fmt:: Debug :: fmt( & self . load( Ordering :: Relaxed ) , f)
You can’t perform that action at this time.
0 commit comments