diff options
author | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-03-13 18:30:54 +0000 |
---|---|---|
committer | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-03-13 18:30:54 +0000 |
commit | 17ef61a126e81c9ecfd1ebdd89537e854a06cae6 (patch) | |
tree | 24669a4d54650bd6b114012d3b476852ea4b9210 /src/archive.rs | |
parent | upgraded to libflate 0.1.21 (diff) | |
download | miniserve-17ef61a126e81c9ecfd1ebdd89537e854a06cae6.tar.gz miniserve-17ef61a126e81c9ecfd1ebdd89537e854a06cae6.zip |
Switched to standard Rust logging system
Diffstat (limited to '')
-rw-r--r-- | src/archive.rs | 7 |
1 files changed, 1 insertions, 6 deletions
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<Vec<u8>, 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<Vec<u8>, errors::CompressionError> { Ok(data) } - -fn color_path(path: &str) -> String { - Color::White.paint(path).bold().to_string() -} |