Commit 1dc707e6 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

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: default avatarMiguel Ojeda <ojeda@kernel.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b50ecc5a
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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;