Skip to content

Commit 5d5a0c6

Browse files
committed
chore(git): merge from master
2 parents 74412cd + 4c0a005 commit 5d5a0c6

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/args.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use terminal_size::{terminal_size, Width};
1515
use text_block_macros::text_block;
1616

1717
/// The CLI arguments.
18-
#[derive(Debug, SmartDefault, Clone, Parser, Setters)]
18+
#[derive(Debug, SmartDefault, Setters, Clone, Parser)]
1919
#[clap(
2020
name = "pdu",
2121
@@ -83,6 +83,7 @@ use text_block_macros::text_block;
8383
8484
color = ColorChoice::Never,
8585
)]
86+
#[setters(prefix = "with_")]
8687
#[non_exhaustive]
8788
pub struct Args {
8889
/// List of files and/or directories.

src/reporter/progress_report.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ use derive_setters::Setters;
33
use std::fmt::Write;
44

55
/// Scan progress.
6-
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Setters)]
6+
#[derive(Debug, Default, Setters, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
7+
#[setters(prefix = "with_")]
78
pub struct ProgressReport<Size: size::Size> {
89
/// Number of scanned items.
910
pub items: u64,

0 commit comments

Comments
 (0)