]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
rust: fix up formatting after merge
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 27 Nov 2024 01:54:58 +0000 (17:54 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 27 Nov 2024 01:54:58 +0000 (17:54 -0800)
When I merged the rust 'use' imports, I didn't realize that there's
an offical preferred idiomatic format - so while it all worked fine,
it doesn't match what 'make rustfmt' wants to make it.

Fix it up appropriately.

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

index 7a76be58312692d9cb116a066870358db563a041..07bc22a7645c0c7d792a0a163dd55b8ff0fe5f92 100644 (file)
@@ -6,11 +6,15 @@
 
 use crate::{
     bindings,
+    ffi::{c_int, c_long, c_uint},
     pid_namespace::PidNamespace,
     types::{ARef, NotThreadSafe, Opaque},
 };
-use crate::ffi::{c_int, c_long, c_uint};
-use core::{cmp::{Eq, PartialEq},ops::Deref, ptr};
+use core::{
+    cmp::{Eq, PartialEq},
+    ops::Deref,
+    ptr,
+};
 
 /// A sentinel value used for infinite timeouts.
 pub const MAX_SCHEDULE_TIMEOUT: c_long = c_long::MAX;