Skip to content
Snippets Groups Projects

fix: used to panic in picolib.raft_log

Merged Georgy Moshkin requested to merge fix/panic-in-picolib.raft_log into master
1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
+ 6
1
@@ -260,7 +260,12 @@ fn picolib_setup(args: &args::Run) {
let total_width = 1 + header.len() + col_widths.iter().sum::<usize>();
let cols = util::screen_size().1 as usize;
if total_width > cols {
cw -= total_width - cols;
match cw.checked_sub(total_width - cols) {
Some(new_cw) if new_cw > 0 => cw = new_cw,
_ => {
return Err(Error::other("screen too small"));
}
}
}
use std::io::Write;
Loading