summaryrefslogtreecommitdiff
path: root/src/cmds/renderer/mappings_pretty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmds/renderer/mappings_pretty.rs')
-rw-r--r--src/cmds/renderer/mappings_pretty.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmds/renderer/mappings_pretty.rs b/src/cmds/renderer/mappings_pretty.rs
index dad4d95..6431302 100644
--- a/src/cmds/renderer/mappings_pretty.rs
+++ b/src/cmds/renderer/mappings_pretty.rs
@@ -1,4 +1,4 @@
-use cli_utils::{display::SimpleTable, string_vec};
+use cli_utils::{display::table::Table, string_vec};
use colored::Colorize;
use just_enough_vcs::system::sheet_system::mapping::LocalMapping;
use render_system_macros::result_renderer;
@@ -29,7 +29,7 @@ fn render_pretty_mappings(mappings: &Vec<LocalMapping>) -> String {
"|"
];
- let mut simple_table = SimpleTable::new(header);
+ let mut table = Table::new(header);
let mut i = 1;
for mapping in mappings {
@@ -39,7 +39,7 @@ fn render_pretty_mappings(mappings: &Vec<LocalMapping>) -> String {
.into_iter()
.map(|s| s.to_string())
.collect::<Vec<String>>();
- simple_table.push_item(vec![
+ table.push_item(vec![
// Number
format!("{}", i).bold().to_string(),
// Mapping
@@ -89,5 +89,5 @@ fn render_pretty_mappings(mappings: &Vec<LocalMapping>) -> String {
i += 1;
}
- simple_table.to_string()
+ table.to_string()
}