cargo fmt

This commit is contained in:
Sharif Haason authored and David Peter committed 2022-11-13 22:15:41 +01:00
1 parent 5d3f36d066
commit 73bfc68cd0
2 files changed
+2 -6

No files matched your search

+1 -2
View File
@@ -507,7 +507,6 @@ impl<'a, Writer: Write> Printer<'a, Writer> {
}
if !self.squeezer.active() || self.squeezer.action() == SqueezeAction::Print {
// print the left border and position panel if there's a new line
if self.idx % (8 * self.panels as u64) == 0 {
self.writer.write_all(
@@ -577,7 +576,7 @@ impl<'a, Writer: Write> Printer<'a, Writer> {
// input was squeezed at the end
write!(self.writer, "{}", self.border_style.outer_sep())?;
self.print_position_panel()?;
// print empty bytes
for i in 0..8 * self.panels {
write!(self.writer, " ")?;
+1 -4
View File
@@ -79,10 +79,7 @@ impl Squeezer {
pub fn active(&self) -> bool {
use self::SqueezeState::*;
matches!(
self.state,
Squeeze | SqueezeActive
)
matches!(self.state, Squeeze | SqueezeActive)
}
pub fn action(&self) -> SqueezeAction {