From bfca334ec1deac165e000205f305b4c6cf4022d7 Mon Sep 17 00:00:00 2001 From: Jens Humrich Date: Thu, 17 Sep 2020 12:40:48 +0200 Subject: [PATCH] style issues --- src/uu/split/src/split.rs | 10 ++++------ tests/by-util/test_split.rs | 1 - 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/uu/split/src/split.rs b/src/uu/split/src/split.rs index 283b4e29a..ee6b8e9fd 100644 --- a/src/uu/split/src/split.rs +++ b/src/uu/split/src/split.rs @@ -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()); diff --git a/tests/by-util/test_split.rs b/tests/by-util/test_split.rs index 4dce1dd28..5ed1a271d 100644 --- a/tests/by-util/test_split.rs +++ b/tests/by-util/test_split.rs @@ -156,4 +156,3 @@ fn test_split_additional_suffix() { assert_eq!(glob.count(), 2); assert_eq!(glob.collate(), at.read(name).into_bytes()); } -