mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-16 11:46:17 +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 {
|
impl LineReader {
|
||||||
fn new(input: Input, line_ending: LineEnding) -> Self {
|
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> {
|
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 {
|
Options {
|
||||||
out_delimiter,
|
out_delimiter,
|
||||||
line_ending,
|
line_ending,
|
||||||
field_opts: Some(FieldOptions {
|
field_opts: Some(FieldOptions { delimiter, only_delimited })},
|
||||||
only_delimited,
|
|
||||||
delimiter,
|
|
||||||
})},
|
|
||||||
)
|
)
|
||||||
}),
|
}),
|
||||||
(2.., _, _, _) => Err(
|
(2.., _, _, _) => Err(
|
||||||
|
|
|
@ -111,9 +111,9 @@ impl Filesystem {
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
let usage = FsUsage::new(Path::new(&_stat_path)).ok()?;
|
let usage = FsUsage::new(Path::new(&_stat_path)).ok()?;
|
||||||
Some(Self {
|
Some(Self {
|
||||||
|
file,
|
||||||
mount_info,
|
mount_info,
|
||||||
usage,
|
usage,
|
||||||
file,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -154,13 +154,13 @@ impl FmtOptions {
|
||||||
crown,
|
crown,
|
||||||
tagged,
|
tagged,
|
||||||
mail,
|
mail,
|
||||||
uniform,
|
|
||||||
quick,
|
|
||||||
split_only,
|
split_only,
|
||||||
prefix,
|
prefix,
|
||||||
xprefix,
|
xprefix,
|
||||||
anti_prefix,
|
anti_prefix,
|
||||||
xanti_prefix,
|
xanti_prefix,
|
||||||
|
uniform,
|
||||||
|
quick,
|
||||||
width,
|
width,
|
||||||
goal,
|
goal,
|
||||||
tabwidth,
|
tabwidth,
|
||||||
|
|
|
@ -204,9 +204,9 @@ impl Formatter for UnsignedInt {
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
|
variant,
|
||||||
width,
|
width,
|
||||||
precision,
|
precision,
|
||||||
variant,
|
|
||||||
alignment,
|
alignment,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,9 +179,9 @@ impl MountInfo {
|
||||||
dev_id,
|
dev_id,
|
||||||
dev_name,
|
dev_name,
|
||||||
fs_type,
|
fs_type,
|
||||||
|
mount_root,
|
||||||
mount_dir,
|
mount_dir,
|
||||||
mount_option,
|
mount_option,
|
||||||
mount_root,
|
|
||||||
remote,
|
remote,
|
||||||
dummy,
|
dummy,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue