Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
LeChatP committed Sep 10, 2024
1 parent 729be01 commit 41166d2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
5 changes: 1 addition & 4 deletions rar-common/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ use std::{
ffi::CString,
fs::File,
io,
os::{
fd::AsRawFd,
unix::fs::{MetadataExt},
},
os::{fd::AsRawFd, unix::fs::MetadataExt},
path::{Path, PathBuf},
};

Expand Down
11 changes: 9 additions & 2 deletions src/chsr/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,15 @@ mod tests {
.finish()
.try_init();
//Write json test json file
let path = format!("{}.{}", ROOTASROLE , name);
let mut file = std::fs::File::create(path.clone()).expect(format!("Failed to create {:?}/{} file at", current_dir().unwrap(), path).as_str());
let path = format!("{}.{}", ROOTASROLE, name);
let mut file = std::fs::File::create(path.clone()).expect(
format!(
"Failed to create {:?}/{} file at",
current_dir().unwrap(),
path
)
.as_str(),
);
let mut settings = SettingsFile::default();
settings.storage.method = StorageMethod::JSON;
settings.storage.settings = Some(RemoteStorageSettings::default());
Expand Down
1 change: 0 additions & 1 deletion xtask/src/deploy/redhat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use crate::{
util::{get_os, OsTarget},
};


pub fn make_rpm(
os: Option<OsTarget>,
profile: Profile,
Expand Down
2 changes: 1 addition & 1 deletion xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod deploy;
mod install;
pub mod util;

use std::{process::exit};
use std::process::exit;

use clap::Parser;
use tracing::{error, Level};
Expand Down
4 changes: 1 addition & 3 deletions xtask/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ use anyhow::{anyhow, Context};
use capctl::Cap;
use capctl::CapState;
use clap::ValueEnum;
use nix::{
libc::{FS_IOC_GETFLAGS, FS_IOC_SETFLAGS},
};
use nix::libc::{FS_IOC_GETFLAGS, FS_IOC_SETFLAGS};
use serde::{Deserialize, Serialize};
use serde_json::Value;
use strum::{Display, EnumIs, EnumIter};
Expand Down

0 comments on commit 41166d2

Please sign in to comment.