]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
rust: sync: atomic: separate import "blocks"
authorMiguel Ojeda <ojeda@kernel.org>
Thu, 4 Dec 2025 14:50:35 +0000 (15:50 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Dec 2025 16:44:10 +0000 (08:44 -0800)
Commit 14e9a18b07ec ("rust: sync: atomic: Make Atomic*Ops pub(crate)")
added a `pub(crate)` import in the same "block" as the `pub` one,
without running `rustfmt`, which would sort them differently.

Instead of running `rustfmt` as-is, add a newline to keep the import
"blocks" with different visibilities separate.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
rust/kernel/sync/atomic.rs

index 3afc376be42d9ff5d54dd4d2125f98eb4dd1e098..4aebeacb961a297f8713c9e5876e60a48ae0f1c5 100644 (file)
@@ -22,6 +22,7 @@ mod predefine;
 
 pub use internal::AtomicImpl;
 pub use ordering::{Acquire, Full, Relaxed, Release};
+
 pub(crate) use internal::{AtomicArithmeticOps, AtomicBasicOps, AtomicExchangeOps};
 
 use crate::build_error;