mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-30 09:05:54 +00:00
Remove debugging line
This commit is contained in:
1 parent
aa43c20f39
commit
975a406d20
1 file changed
+2
-3
+2
-3
@@ -155,7 +155,7 @@ pub struct Printer<'a, Writer: Write> {
|
|||||||
squeezer: Squeezer,
|
squeezer: Squeezer,
|
||||||
display_offset: u64,
|
display_offset: u64,
|
||||||
/// The number of panels to draw.
|
/// The number of panels to draw.
|
||||||
columns: u8,
|
columns: u16,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, Writer: Write> Printer<'a, Writer> {
|
impl<'a, Writer: Write> Printer<'a, Writer> {
|
||||||
@@ -166,7 +166,7 @@ impl<'a, Writer: Write> Printer<'a, Writer> {
|
|||||||
show_position_panel: bool,
|
show_position_panel: bool,
|
||||||
border_style: BorderStyle,
|
border_style: BorderStyle,
|
||||||
use_squeeze: bool,
|
use_squeeze: bool,
|
||||||
columns: u8,
|
columns: u16,
|
||||||
) -> Printer<'a, Writer> {
|
) -> Printer<'a, Writer> {
|
||||||
Printer {
|
Printer {
|
||||||
idx: 1,
|
idx: 1,
|
||||||
@@ -389,7 +389,6 @@ impl<'a, Writer: Write> Printer<'a, Writer> {
|
|||||||
if squeeze_action != SqueezeAction::Delete {
|
if squeeze_action != SqueezeAction::Delete {
|
||||||
if len < usize::from(8 * self.columns) {
|
if len < usize::from(8 * self.columns) {
|
||||||
write!(&mut self.buffer_line, "{0:1$}", "", 3 * (8 - len % 8))?;
|
write!(&mut self.buffer_line, "{0:1$}", "", 3 * (8 - len % 8))?;
|
||||||
// dbg!(usize::from(8 * self.columns) - (len + (8 - len % 8)));
|
|
||||||
for _ in 0..(usize::from(8 * self.columns) - (len + (8 - len % 8))) / 8 {
|
for _ in 0..(usize::from(8 * self.columns) - (len + (8 - len % 8))) / 8 {
|
||||||
write!(
|
write!(
|
||||||
&mut self.buffer_line,
|
&mut self.buffer_line,
|
||||||
|
|||||||
Reference in new issue
Block a user