style: nix fmt

Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net>
This commit is contained in:
Thomas Mühlbacher 2024-07-19 23:00:27 +02:00
parent e218119b01
commit 7c68f2758d

View File

@ -48,7 +48,10 @@ fn mount_inner(
let err = errno::errno().0;
if ret == 0 || (err != libc::EACCES && err != libc::EROFS) || (mountflags & libc::MS_RDONLY) != 0 {
if ret == 0
|| (err != libc::EACCES && err != libc::EROFS)
|| (mountflags & libc::MS_RDONLY) != 0
{
break;
}
@ -333,7 +336,8 @@ fn cmd_mount_inner(cli: &Cli) -> Result<()> {
// Grab the udev information once
let udev_info = udev_bcachefs_info()?;
let (devices, mut sbs) = if let Some(("UUID" | "OLD_BLKID_UUID", uuid)) = cli.dev.split_once('=') {
let (devices, mut sbs) =
if let Some(("UUID" | "OLD_BLKID_UUID", uuid)) = cli.dev.split_once('=') {
devs_str_sbs_from_uuid(&udev_info, uuid)?
} else if cli.dev.contains(':') {
// If the device string contains ":" we will assume the user knows the
@ -361,7 +365,9 @@ fn cmd_mount_inner(cli: &Cli) -> Result<()> {
}
for sb in &mut sbs {
unsafe { bch_bindgen::sb_io::bch2_free_super(sb); }
unsafe {
bch_bindgen::sb_io::bch2_free_super(sb);
}
}
drop(sbs);