Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+6 -2
+6 -2
rust/kernel/task.rs
··· 6 6 7 7 use crate::{ 8 8 bindings, 9 + ffi::{c_int, c_long, c_uint}, 9 10 pid_namespace::PidNamespace, 10 11 types::{ARef, NotThreadSafe, Opaque}, 11 12 }; 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 + }; 14 18 15 19 /// A sentinel value used for infinite timeouts. 16 20 pub const MAX_SCHEDULE_TIMEOUT: c_long = c_long::MAX;