-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Labels
Description
The program below produces garbled output:
main.rs:
use prettytable::{Table, format, cell, row};
fn print_table(s: usize) {
let mut table = Table::new();
table.set_titles(row![c => "num"]);
table.set_format(*format::consts::FORMAT_NO_LINESEP_WITH_TITLE);
for i in s..s+100 {
table.add_row(row![i]);
}
table.printstd();
}
fn main() {
rayon::join(|| print_table(0), || print_table(1000));
}
Cargo.toml:
[package]
name = "prettytabletest"
version = "0.1.0"
edition = "2018"
[dependencies]
prettytable-rs = "*"
rayon = "1.0"
dfirence