From 17ef61a126e81c9ecfd1ebdd89537e854a06cae6 Mon Sep 17 00:00:00 2001 From: boasting-squirrel Date: Wed, 13 Mar 2019 19:30:54 +0100 Subject: Switched to standard Rust logging system --- src/archive.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/archive.rs') diff --git a/src/archive.rs b/src/archive.rs index c535c50..e1460b9 100644 --- a/src/archive.rs +++ b/src/archive.rs @@ -6,7 +6,6 @@ use serde::Deserialize; use std::io; use std::path::PathBuf; use tar::Builder; -use yansi::Color; use crate::errors; @@ -100,7 +99,7 @@ fn tar(src_dir: String, inner_folder: String) -> Result, errors::Compres errors::CompressionErrorKind::TarBuildingError { message: format!( "failed to append the content of {} in the TAR archive", - color_path(&src_dir) + &src_dir ), }, )?; @@ -132,7 +131,3 @@ fn gzip(mut data: &[u8]) -> Result, errors::CompressionError> { Ok(data) } - -fn color_path(path: &str) -> String { - Color::White.paint(path).bold().to_string() -} -- cgit v1.2.3