mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:34 +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_position_panel(true)
|
||||
.with_border_style(BorderStyle::Unicode)
|
||||
.with_squeeze(false)
|
||||
.enable_squeezing(false)
|
||||
.with_panels(2)
|
||||
.build();
|
||||
printer.print_all(&input[..]).unwrap();
|
||||
|
||||
+1
-1
@@ -340,7 +340,7 @@ fn run() -> Result<(), AnyhowError> {
|
||||
.show_char_panel(show_char_panel)
|
||||
.show_position_panel(show_position_panel)
|
||||
.with_border_style(border_style)
|
||||
.with_squeeze(squeeze)
|
||||
.enable_squeezing(squeeze)
|
||||
.with_panels(panels)
|
||||
.build();
|
||||
printer.display_offset(skip_offset + display_offset);
|
||||
|
||||
+2
-2
@@ -182,8 +182,8 @@ impl<'a, Writer: Write> PrinterBuilder<'a, Writer> {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn with_squeeze(mut self, use_squeeze: bool) -> Self {
|
||||
self.use_squeeze = use_squeeze;
|
||||
pub fn enable_squeezing(mut self, enable: bool) -> Self {
|
||||
self.use_squeeze = enable;
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user