Rename with_panels to num_panels

This commit is contained in:
Sharif Haason authored and David Peter committed 2022-10-04 18:09:47 +02:00
1 parent 9ccf18f4c0
commit 9602667991
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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
}