Skip to content

Commit

Permalink
shref: rename the struct
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Dec 4, 2024
1 parent 5c1bd78 commit ca19cfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/uu/shred/src/shred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub mod options {
pub const WIPESYNC: &str = "wipesync";
}
}
struct Params {
struct WipeOptions {
iterations: usize,
remove_method: RemoveMethod,
size: Option<u64>,
Expand Down Expand Up @@ -313,7 +313,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
.get_one::<String>(options::SIZE)
.map(|s| s.to_string());
let size = get_size(size_arg);
let opts = Params {
let opts = WipeOptions {
iterations,
remove_method,
force: matches.get_flag(options::FORCE),
Expand Down Expand Up @@ -443,7 +443,7 @@ fn pass_name(pass_type: &PassType) -> String {
}

#[allow(clippy::cognitive_complexity)]
fn wipe_file(path_str: &str, opts: &Params) -> UResult<()> {
fn wipe_file(path_str: &str, opts: &WipeOptions) -> UResult<()> {
// Get these potential errors out of the way first
let path = Path::new(path_str);
if !path.exists() {
Expand Down

0 comments on commit ca19cfb

Please sign in to comment.