mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 17:00:18 +00:00
table_data => table_row
This commit is contained in:
1 parent
4c91b36259
commit
79ca2297bb
2 files changed
+7
-8
No files matched your search
@@ -19,7 +19,7 @@ pub trait MarkupExporter {
|
||||
];
|
||||
|
||||
// emit header
|
||||
let mut table = self.table_data(&head);
|
||||
let mut table = self.table_row(&head);
|
||||
|
||||
// emit horizontal line
|
||||
table.push_str(&self.table_line(head.len()));
|
||||
@@ -44,21 +44,21 @@ pub trait MarkupExporter {
|
||||
} else {
|
||||
"".into()
|
||||
};
|
||||
|
||||
// prepare table row entries
|
||||
let data: [&str; 5] = [
|
||||
table.push_str(&self.table_row(&[
|
||||
&self.command(&cmd_str),
|
||||
&format!("{}{}", mean_str, stddev_str),
|
||||
&min_str,
|
||||
&max_str,
|
||||
&format!("{}{}", rel_str, rel_stddev_str),
|
||||
];
|
||||
table.push_str(&self.table_data(&data))
|
||||
]))
|
||||
}
|
||||
|
||||
table
|
||||
}
|
||||
|
||||
fn table_data(&self, data: &[&str]) -> String;
|
||||
fn table_row(&self, data: &[&str]) -> String;
|
||||
|
||||
fn table_line(&self, size: usize) -> String;
|
||||
|
||||
|
||||
Reference in new issue
Block a user