mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-28 08:05:52 +00:00
cargo fmt
This commit is contained in:
1 parent
5d3f36d066
commit
73bfc68cd0
2 files changed
+2
-6
No files matched your search
+1
-2
@@ -507,7 +507,6 @@ impl<'a, Writer: Write> Printer<'a, Writer> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !self.squeezer.active() || self.squeezer.action() == SqueezeAction::Print {
|
if !self.squeezer.active() || self.squeezer.action() == SqueezeAction::Print {
|
||||||
|
|
||||||
// print the left border and position panel if there's a new line
|
// print the left border and position panel if there's a new line
|
||||||
if self.idx % (8 * self.panels as u64) == 0 {
|
if self.idx % (8 * self.panels as u64) == 0 {
|
||||||
self.writer.write_all(
|
self.writer.write_all(
|
||||||
@@ -577,7 +576,7 @@ impl<'a, Writer: Write> Printer<'a, Writer> {
|
|||||||
// input was squeezed at the end
|
// input was squeezed at the end
|
||||||
write!(self.writer, "{}", self.border_style.outer_sep())?;
|
write!(self.writer, "{}", self.border_style.outer_sep())?;
|
||||||
self.print_position_panel()?;
|
self.print_position_panel()?;
|
||||||
|
|
||||||
// print empty bytes
|
// print empty bytes
|
||||||
for i in 0..8 * self.panels {
|
for i in 0..8 * self.panels {
|
||||||
write!(self.writer, " ")?;
|
write!(self.writer, " ")?;
|
||||||
|
|||||||
+1
-4
@@ -79,10 +79,7 @@ impl Squeezer {
|
|||||||
|
|
||||||
pub fn active(&self) -> bool {
|
pub fn active(&self) -> bool {
|
||||||
use self::SqueezeState::*;
|
use self::SqueezeState::*;
|
||||||
matches!(
|
matches!(self.state, Squeeze | SqueezeActive)
|
||||||
self.state,
|
|
||||||
Squeeze | SqueezeActive
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn action(&self) -> SqueezeAction {
|
pub fn action(&self) -> SqueezeAction {
|
||||||
|
|||||||
Reference in new issue
Block a user