mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-30 09:05:54 +00:00
cargo fmt
This commit is contained in:
1 parent
5d3f36d066
commit
73bfc68cd0
2 files changed
+1
-5
No files matched your search
@@ -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(
|
||||||
|
|||||||
+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