mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
style issues
This commit is contained in:
parent
f322f72c34
commit
bfca334ec1
2 changed files with 4 additions and 7 deletions
|
@ -92,7 +92,7 @@ size is 1000, and default PREFIX is 'x'. With no INPUT, or when INPUT is
|
|||
prefix: "".to_owned(),
|
||||
numeric_suffix: false,
|
||||
suffix_length: 0,
|
||||
additional_suffix: "".to_owned(),
|
||||
additional_suffix: "".to_owned(),
|
||||
input: "".to_owned(),
|
||||
strategy: "".to_owned(),
|
||||
strategy_param: "".to_owned(),
|
||||
|
@ -333,12 +333,10 @@ fn split(settings: &Settings) -> i32 {
|
|||
num_prefix(fileno, settings.suffix_length)
|
||||
} else {
|
||||
str_prefix(fileno, settings.suffix_length)
|
||||
}.as_ref(),
|
||||
);
|
||||
filename.push_str(
|
||||
settings.additional_suffix
|
||||
.as_ref()
|
||||
}
|
||||
.as_ref(),
|
||||
);
|
||||
filename.push_str(settings.additional_suffix.as_ref());
|
||||
|
||||
if fileno != 0 {
|
||||
crash_if_err!(1, writer.flush());
|
||||
|
|
|
@ -156,4 +156,3 @@ fn test_split_additional_suffix() {
|
|||
assert_eq!(glob.count(), 2);
|
||||
assert_eq!(glob.collate(), at.read(name).into_bytes());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue