mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:31 +00:00
Rename with_panels to num_panels
This commit is contained in:
1 parent
9ccf18f4c0
commit
9602667991
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -17,7 +17,7 @@ fn main() {
|
||||
.show_position_panel(true)
|
||||
.with_border_style(BorderStyle::Unicode)
|
||||
.enable_squeezing(false)
|
||||
.with_panels(2)
|
||||
.num_panels(2)
|
||||
.build();
|
||||
printer.print_all(&input[..]).unwrap();
|
||||
}
|
||||
+1
-1
@@ -341,7 +341,7 @@ fn run() -> Result<(), AnyhowError> {
|
||||
.show_position_panel(show_position_panel)
|
||||
.with_border_style(border_style)
|
||||
.enable_squeezing(squeeze)
|
||||
.with_panels(panels)
|
||||
.num_panels(panels)
|
||||
.build();
|
||||
printer.display_offset(skip_offset + display_offset);
|
||||
printer.print_all(&mut reader).map_err(|e| anyhow!(e))?;
|
||||
|
||||
+2
-2
@@ -187,8 +187,8 @@ impl<'a, Writer: Write> PrinterBuilder<'a, Writer> {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn with_panels(mut self, panels: u16) -> Self {
|
||||
self.panels = panels;
|
||||
pub fn num_panels(mut self, num: u16) -> Self {
|
||||
self.panels = num;
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user