mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-30 09:05:54 +00:00
Rename with_squeeze to enable_squeezing
This commit is contained in:
1 parent
4823523b7d
commit
aa921ca184
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -16,7 +16,7 @@ fn main() {
|
|||||||
.show_char_panel(true)
|
.show_char_panel(true)
|
||||||
.show_position_panel(true)
|
.show_position_panel(true)
|
||||||
.with_border_style(BorderStyle::Unicode)
|
.with_border_style(BorderStyle::Unicode)
|
||||||
.with_squeeze(false)
|
.enable_squeezing(false)
|
||||||
.with_panels(2)
|
.with_panels(2)
|
||||||
.build();
|
.build();
|
||||||
printer.print_all(&input[..]).unwrap();
|
printer.print_all(&input[..]).unwrap();
|
||||||
|
|||||||
+1
-1
@@ -340,7 +340,7 @@ fn run() -> Result<(), AnyhowError> {
|
|||||||
.show_char_panel(show_char_panel)
|
.show_char_panel(show_char_panel)
|
||||||
.show_position_panel(show_position_panel)
|
.show_position_panel(show_position_panel)
|
||||||
.with_border_style(border_style)
|
.with_border_style(border_style)
|
||||||
.with_squeeze(squeeze)
|
.enable_squeezing(squeeze)
|
||||||
.with_panels(panels)
|
.with_panels(panels)
|
||||||
.build();
|
.build();
|
||||||
printer.display_offset(skip_offset + display_offset);
|
printer.display_offset(skip_offset + display_offset);
|
||||||
|
|||||||
+2
-2
@@ -182,8 +182,8 @@ impl<'a, Writer: Write> PrinterBuilder<'a, Writer> {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn with_squeeze(mut self, use_squeeze: bool) -> Self {
|
pub fn enable_squeezing(mut self, enable: bool) -> Self {
|
||||||
self.use_squeeze = use_squeeze;
|
self.use_squeeze = enable;
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user