mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
style issues
This commit is contained in:
parent
f322f72c34
commit
bfca334ec1
2 changed files with 4 additions and 7 deletions
|
@ -333,12 +333,10 @@ fn split(settings: &Settings) -> i32 {
|
||||||
num_prefix(fileno, settings.suffix_length)
|
num_prefix(fileno, settings.suffix_length)
|
||||||
} else {
|
} else {
|
||||||
str_prefix(fileno, settings.suffix_length)
|
str_prefix(fileno, settings.suffix_length)
|
||||||
}.as_ref(),
|
}
|
||||||
);
|
.as_ref(),
|
||||||
filename.push_str(
|
|
||||||
settings.additional_suffix
|
|
||||||
.as_ref()
|
|
||||||
);
|
);
|
||||||
|
filename.push_str(settings.additional_suffix.as_ref());
|
||||||
|
|
||||||
if fileno != 0 {
|
if fileno != 0 {
|
||||||
crash_if_err!(1, writer.flush());
|
crash_if_err!(1, writer.flush());
|
||||||
|
|
|
@ -156,4 +156,3 @@ fn test_split_additional_suffix() {
|
||||||
assert_eq!(glob.count(), 2);
|
assert_eq!(glob.count(), 2);
|
||||||
assert_eq!(glob.collate(), at.read(name).into_bytes());
|
assert_eq!(glob.collate(), at.read(name).into_bytes());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue