diff --git a/src/bin/hexyl.rs b/src/bin/hexyl.rs index 32986a4..5334be0 100644 --- a/src/bin/hexyl.rs +++ b/src/bin/hexyl.rs @@ -434,7 +434,9 @@ fn run() -> Result<()> { ) }; - let little_endian_dump = *matches.get_one::("little_endian_dump").unwrap_or(&false); + let little_endian_dump = *matches + .get_one::("little_endian_dump") + .unwrap_or(&false); let stdout = io::stdout(); let mut stdout_lock = BufWriter::new(stdout.lock()); diff --git a/src/lib.rs b/src/lib.rs index dcb10bf..724d83e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -543,7 +543,7 @@ impl<'a, Writer: Write> Printer<'a, Writer> { let remaining = n - idx; let total = remaining.min(group_sz); - buf[idx..idx+total].reverse(); + buf[idx..idx + total].reverse(); } }