diff options
Diffstat (limited to 'src/print.rs')
-rw-r--r-- | src/print.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/print.rs b/src/print.rs index 0409e7d..85e04b4 100644 --- a/src/print.rs +++ b/src/print.rs @@ -3,7 +3,7 @@ use { crate::{ app::{AppContext, AppStateCmdResult}, - display::{Cols, DisplayableTree, Screen}, + display::{DisplayableTree, Screen}, errors::ProgramError, launchable::Launchable, skin::{ExtColorMap, PanelSkin, StyleMap}, @@ -56,11 +56,10 @@ fn print_tree_to_file( tree: &Tree, screen: Screen, file_path: &str, - cols: &Cols, ext_colors: &ExtColorMap, ) -> Result<AppStateCmdResult, ProgramError> { let no_style_skin = StyleMap::no_term(); - let dp = DisplayableTree::out_of_app(tree, &no_style_skin, cols, ext_colors, screen.width); + let dp = DisplayableTree::out_of_app(tree, &no_style_skin, ext_colors, screen.width); let mut f = OpenOptions::new() .create(true) .append(true) @@ -77,7 +76,7 @@ pub fn print_tree( ) -> Result<AppStateCmdResult, ProgramError> { if let Some(ref output_path) = con.launch_args.file_export_path { // an output path was provided, we write to it - print_tree_to_file(tree, screen, output_path, &con.cols, &con.ext_colors) + print_tree_to_file(tree, screen, output_path, &con.ext_colors) } else { // no output path provided. We write on stdout, but we must // do it after app closing to have the normal terminal @@ -90,7 +89,6 @@ pub fn print_tree( tree, screen, styles, - con.cols, con.ext_colors.clone(), ))) } |