diff --git a/src/uu/more/src/more.rs b/src/uu/more/src/more.rs index 8f25cd7e4..ecc779ba6 100644 --- a/src/uu/more/src/more.rs +++ b/src/uu/more/src/more.rs @@ -349,12 +349,10 @@ impl<'a> Pager<'a> { let status = format!("--More--({})", status_inner); let banner = match (self.silent, wrong_key) { - (true, Some(key)) => { - format!( - "{} [Unknown key: '{}'. Press 'h' for instructions. (unimplemented)]", - status, key - ) - } + (true, Some(key)) => format!( + "{} [Unknown key: '{}'. Press 'h' for instructions. (unimplemented)]", + status, key + ), (true, None) => format!("{}[Press space to continue, 'q' to quit.]", status), (false, Some(_)) => format!("{}{}", status, BELL), (false, None) => status, diff --git a/tests/by-util/test_head.rs b/tests/by-util/test_head.rs index a3e3a79d7..246f5b62a 100755 --- a/tests/by-util/test_head.rs +++ b/tests/by-util/test_head.rs @@ -262,7 +262,8 @@ fn test_bad_utf8() { #[test] fn test_bad_utf8_lines() { - let input: &[u8] = b"\xfc\x80\x80\x80\x80\xaf\nb\xfc\x80\x80\x80\x80\xaf\nb\xfc\x80\x80\x80\x80\xaf"; + let input: &[u8] = + b"\xfc\x80\x80\x80\x80\xaf\nb\xfc\x80\x80\x80\x80\xaf\nb\xfc\x80\x80\x80\x80\xaf"; let output = b"\xfc\x80\x80\x80\x80\xaf\nb\xfc\x80\x80\x80\x80\xaf\n"; new_ucmd!() .args(&["-n", "2"])