diff --git a/rust/src/config/auth.rs b/rust/src/config/auth.rs index 6765febf..eeb6bf51 100644 --- a/rust/src/config/auth.rs +++ b/rust/src/config/auth.rs @@ -1,6 +1,6 @@ use std::error::Error; -use std::{borrow::Cow, fmt::Display}; use std::process::exit; +use std::{borrow::Cow, fmt::Display}; use nix::unistd::{Group, User}; use serde::{de::Visitor, ser::SerializeTuple, Deserialize, Serialize}; @@ -145,11 +145,11 @@ impl Default for DummyAuthConfig { }, DummyAuthEntry { user: upjdfstest, - group: gpjdfstest + group: gpjdfstest, }, DummyAuthEntry { user: utests, - group: gtests + group: gtests, }, ], } diff --git a/rust/src/tests/mod.rs b/rust/src/tests/mod.rs index 833561cb..915a021b 100644 --- a/rust/src/tests/mod.rs +++ b/rust/src/tests/mod.rs @@ -1,10 +1,10 @@ //! Where the tests are defined. -//! +//! //! This module contains the tests for the file system test suite. The tests are defined as functions //! which are then registered with the test suite. -//! +//! //! The tests are defined using the `test_case!` macro, which is used to define a test case for the test suite. -//! +//! //! It also contains some helper functions and macros which are used to define the tests. use std::fs::symlink_metadata; diff --git a/rust/src/tests/rmdir.rs b/rust/src/tests/rmdir.rs index aa3519ea..5760dca1 100644 --- a/rust/src/tests/rmdir.rs +++ b/rust/src/tests/rmdir.rs @@ -103,8 +103,8 @@ fn has_mount_cap(_: &Config, _: &Path) -> anyhow::Result<()> { if !Uid::effective().is_root() && ctl.value()? == CtlValue::Int(0) { anyhow::bail!("process doesn't have the rights to mount the dummy file system") } - if !Uid::effective().is_root() && - !OsStr::from_bytes(&Command::new("lsvfs").output().unwrap().stdout) + if !Uid::effective().is_root() + && !OsStr::from_bytes(&Command::new("lsvfs").output().unwrap().stdout) .to_string_lossy() .contains("nullfs") { diff --git a/rust/src/utils.rs b/rust/src/utils.rs index e14a8e97..96151cda 100644 --- a/rust/src/utils.rs +++ b/rust/src/utils.rs @@ -1,5 +1,5 @@ //! Utility functions for filesystem operations. -//! +//! //! This module provides utility functions for filesystem operations which are not available in the standard library. use std::{ @@ -95,7 +95,7 @@ pub fn lchflags( /// Wrapper for open which returns [`Ownedfd`] instead of [`RawFd`]. pub fn open(path: &P, oflag: OFlag, mode: Mode) -> nix::Result { - // SAFETY: The file descriptor was initialized only by open and isn't used anywhere else, + // SAFETY: The file descriptor was initialized only by open and isn't used anywhere else, // leaving the ownership to the caller. nix::fcntl::open(path, oflag, mode).map(|fd| unsafe { OwnedFd::from_raw_fd(fd) }) }