mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-01 13:37:48 +00:00
Fix clippy::inconsistent_struct_constructor.
This commit is contained in:
parent
cff8cc0e22
commit
d0e30b2745
6 changed files with 7 additions and 10 deletions
|
@ -42,7 +42,7 @@ struct LineReader {
|
|||
|
||||
impl LineReader {
|
||||
fn new(input: Input, line_ending: LineEnding) -> Self {
|
||||
Self { input, line_ending }
|
||||
Self { line_ending, input }
|
||||
}
|
||||
|
||||
fn read_line(&mut self, buf: &mut Vec<u8>) -> io::Result<usize> {
|
||||
|
|
|
@ -476,10 +476,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||
Options {
|
||||
out_delimiter,
|
||||
line_ending,
|
||||
field_opts: Some(FieldOptions {
|
||||
only_delimited,
|
||||
delimiter,
|
||||
})},
|
||||
field_opts: Some(FieldOptions { delimiter, only_delimited })},
|
||||
)
|
||||
}),
|
||||
(2.., _, _, _) => Err(
|
||||
|
|
|
@ -111,9 +111,9 @@ impl Filesystem {
|
|||
#[cfg(windows)]
|
||||
let usage = FsUsage::new(Path::new(&_stat_path)).ok()?;
|
||||
Some(Self {
|
||||
file,
|
||||
mount_info,
|
||||
usage,
|
||||
file,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -154,13 +154,13 @@ impl FmtOptions {
|
|||
crown,
|
||||
tagged,
|
||||
mail,
|
||||
uniform,
|
||||
quick,
|
||||
split_only,
|
||||
prefix,
|
||||
xprefix,
|
||||
anti_prefix,
|
||||
xanti_prefix,
|
||||
uniform,
|
||||
quick,
|
||||
width,
|
||||
goal,
|
||||
tabwidth,
|
||||
|
|
|
@ -204,9 +204,9 @@ impl Formatter for UnsignedInt {
|
|||
};
|
||||
|
||||
Ok(Self {
|
||||
variant,
|
||||
width,
|
||||
precision,
|
||||
variant,
|
||||
alignment,
|
||||
})
|
||||
}
|
||||
|
|
|
@ -179,9 +179,9 @@ impl MountInfo {
|
|||
dev_id,
|
||||
dev_name,
|
||||
fs_type,
|
||||
mount_root,
|
||||
mount_dir,
|
||||
mount_option,
|
||||
mount_root,
|
||||
remote,
|
||||
dummy,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue