mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:31 +00:00
Fix formatting
This commit is contained in:
1 parent
38301f3759
commit
5a295296fe
2 files changed
+4
-3
No files matched your search
+4
-2
@@ -3,8 +3,10 @@ use std::io;
|
|||||||
use hexyl::{BorderStyle, PrinterBuilder};
|
use hexyl::{BorderStyle, PrinterBuilder};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let input = [0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44,
|
let input = [
|
||||||
0x52, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x44, 0x08, 0x02, 0x00, 0x00, 0x00];
|
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44,
|
||||||
|
0x52, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x44, 0x08, 0x02, 0x00, 0x00, 0x00,
|
||||||
|
];
|
||||||
|
|
||||||
let stdout = io::stdout();
|
let stdout = io::stdout();
|
||||||
let mut handle = stdout.lock();
|
let mut handle = stdout.lock();
|
||||||
|
|||||||
@@ -415,7 +415,6 @@ pub struct Printer<'a, Writer: Write> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, Writer: Write> Printer<'a, Writer> {
|
impl<'a, Writer: Write> Printer<'a, Writer> {
|
||||||
|
|
||||||
pub fn display_offset(&mut self, display_offset: u64) -> &mut Self {
|
pub fn display_offset(&mut self, display_offset: u64) -> &mut Self {
|
||||||
self.display_offset = display_offset;
|
self.display_offset = display_offset;
|
||||||
self
|
self
|
||||||
|
|||||||
Reference in new issue
Block a user