Skip to content

Commit 1dc707e

Browse files
committed
rust: fix up formatting after merge
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>
1 parent b50ecc5 commit 1dc707e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

rust/kernel/task.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@
66
77
use crate::{
88
bindings,
9+
ffi::{c_int, c_long, c_uint},
910
pid_namespace::PidNamespace,
1011
types::{ARef, NotThreadSafe, Opaque},
1112
};
12-
use crate::ffi::{c_int, c_long, c_uint};
13-
use core::{cmp::{Eq, PartialEq},ops::Deref, ptr};
13+
use core::{
14+
cmp::{Eq, PartialEq},
15+
ops::Deref,
16+
ptr,
17+
};
1418

1519
/// A sentinel value used for infinite timeouts.
1620
pub const MAX_SCHEDULE_TIMEOUT: c_long = c_long::MAX;

0 commit comments

Comments
 (0)