1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

style issues

This commit is contained in:
Jens Humrich 2020-09-17 12:40:48 +02:00
parent f322f72c34
commit bfca334ec1
2 changed files with 4 additions and 7 deletions

View file

@ -92,7 +92,7 @@ size is 1000, and default PREFIX is 'x'. With no INPUT, or when INPUT is
prefix: "".to_owned(), prefix: "".to_owned(),
numeric_suffix: false, numeric_suffix: false,
suffix_length: 0, suffix_length: 0,
additional_suffix: "".to_owned(), additional_suffix: "".to_owned(),
input: "".to_owned(), input: "".to_owned(),
strategy: "".to_owned(), strategy: "".to_owned(),
strategy_param: "".to_owned(), strategy_param: "".to_owned(),
@ -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());

View file

@ -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());
} }