1
Fork 0
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:
David Campbell 2024-09-19 18:55:31 -04:00
parent cff8cc0e22
commit d0e30b2745
No known key found for this signature in database
GPG key ID: C2E99A0CF863A603
6 changed files with 7 additions and 10 deletions

View file

@ -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> {

View file

@ -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(

View file

@ -111,9 +111,9 @@ impl Filesystem {
#[cfg(windows)]
let usage = FsUsage::new(Path::new(&_stat_path)).ok()?;
Some(Self {
file,
mount_info,
usage,
file,
})
}

View 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,

View file

@ -204,9 +204,9 @@ impl Formatter for UnsignedInt {
};
Ok(Self {
variant,
width,
precision,
variant,
alignment,
})
}

View file

@ -179,9 +179,9 @@ impl MountInfo {
dev_id,
dev_name,
fs_type,
mount_root,
mount_dir,
mount_option,
mount_root,
remote,
dummy,
})