summaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
authorNick Gerace <nickagerace@gmail.com>2021-05-15 23:56:27 -0400
committerNick Gerace <nickagerace@gmail.com>2021-05-15 23:59:48 -0400
commitbe2283419f98cd28537ca32668d117ca54f80456 (patch)
treef5631dcd9d51b138c31547b1b97815f66e1098bf /src/util.rs
parent85b601b19383a0de3c2b263b98ea1922e0723285 (diff)
downloadgfold-be2283419f98cd28537ca32668d117ca54f80456.zip
Move application-esque behavior out of the library
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.rs b/src/util.rs
index a3c2483..ef86249 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -1,4 +1,4 @@
-use crate::driver;
+use crate::internal_types;
use log::{debug, warn};
use prettytable::{Cell, Row};
use std::path::{Path, PathBuf};
@@ -19,7 +19,7 @@ pub fn create_table_from_paths(
enable_unpushed_check: &bool,
no_color: &bool,
show_email: &bool,
-) -> Option<driver::TableWrapper> {
+) -> Option<internal_types::TableWrapper> {
let mut table = prettytable::Table::new();
table.set_format(
prettytable::format::FormatBuilder::new()
@@ -125,7 +125,7 @@ pub fn create_table_from_paths(
debug!("Generated {:#?} rows for table object", table.len());
match table.is_empty() {
true => None,
- false => Some(driver::TableWrapper {
+ false => Some(internal_types::TableWrapper {
path_string: path.to_str()?.to_string(),
table,
}),