fix(deps): update rust crate comfy-table to v7 #29
2 changed files with 5 additions and 5 deletions
|
@ -2,7 +2,7 @@ use std::fs;
|
||||||
|
|
||||||
use chrono::{DateTime, Local};
|
use chrono::{DateTime, Local};
|
||||||
use colored::*;
|
use colored::*;
|
||||||
use comfy_table::presets::UTF8_HORIZONTAL_BORDERS_ONLY;
|
use comfy_table::presets::UTF8_HORIZONTAL_ONLY;
|
||||||
use comfy_table::{Cell, CellAlignment, ContentArrangement, Table};
|
use comfy_table::{Cell, CellAlignment, ContentArrangement, Table};
|
||||||
use flexi_logger::{FileSpec, LevelFilter};
|
use flexi_logger::{FileSpec, LevelFilter};
|
||||||
use log::error;
|
use log::error;
|
||||||
|
@ -38,7 +38,7 @@ pub fn display_summary(
|
||||||
println!("\n{}", "Partially failed downloads".yellow().bold());
|
println!("\n{}", "Partially failed downloads".yellow().bold());
|
||||||
let mut table_partial = Table::new();
|
let mut table_partial = Table::new();
|
||||||
table_partial
|
table_partial
|
||||||
.load_preset(UTF8_HORIZONTAL_BORDERS_ONLY)
|
.load_preset(UTF8_HORIZONTAL_ONLY)
|
||||||
.set_header(vec![
|
.set_header(vec![
|
||||||
Cell::new("Link").set_alignment(CellAlignment::Center),
|
Cell::new("Link").set_alignment(CellAlignment::Center),
|
||||||
Cell::new("Title").set_alignment(CellAlignment::Center),
|
Cell::new("Title").set_alignment(CellAlignment::Center),
|
||||||
|
@ -55,7 +55,7 @@ pub fn display_summary(
|
||||||
println!("\n{}", "Failed article downloads".bright_red().bold());
|
println!("\n{}", "Failed article downloads".bright_red().bold());
|
||||||
let mut table_failed = Table::new();
|
let mut table_failed = Table::new();
|
||||||
table_failed
|
table_failed
|
||||||
.load_preset(UTF8_HORIZONTAL_BORDERS_ONLY)
|
.load_preset(UTF8_HORIZONTAL_ONLY)
|
||||||
.set_header(vec![
|
.set_header(vec![
|
||||||
Cell::new("Link").set_alignment(CellAlignment::Center),
|
Cell::new("Link").set_alignment(CellAlignment::Center),
|
||||||
Cell::new("Reason").set_alignment(CellAlignment::Center),
|
Cell::new("Reason").set_alignment(CellAlignment::Center),
|
||||||
|
|
|
@ -4,7 +4,7 @@ extern crate lazy_static;
|
||||||
use std::process::exit;
|
use std::process::exit;
|
||||||
|
|
||||||
use colored::Colorize;
|
use colored::Colorize;
|
||||||
use comfy_table::presets::{UTF8_FULL, UTF8_HORIZONTAL_BORDERS_ONLY};
|
use comfy_table::presets::{UTF8_FULL, UTF8_HORIZONTAL_ONLY};
|
||||||
use comfy_table::{ContentArrangement, Table};
|
use comfy_table::{ContentArrangement, Table};
|
||||||
use http::download;
|
use http::download;
|
||||||
use indicatif::{ProgressBar, ProgressStyle};
|
use indicatif::{ProgressBar, ProgressStyle};
|
||||||
|
@ -70,7 +70,7 @@ fn run(app_config: AppConfig) {
|
||||||
let mut successful_articles_table = Table::new();
|
let mut successful_articles_table = Table::new();
|
||||||
successful_articles_table
|
successful_articles_table
|
||||||
.load_preset(UTF8_FULL)
|
.load_preset(UTF8_FULL)
|
||||||
.load_preset(UTF8_HORIZONTAL_BORDERS_ONLY)
|
.load_preset(UTF8_HORIZONTAL_ONLY)
|
||||||
.set_content_arrangement(ContentArrangement::Dynamic);
|
.set_content_arrangement(ContentArrangement::Dynamic);
|
||||||
|
|
||||||
match app_config.export_type {
|
match app_config.export_type {
|
||||||
|
|
Reference in a new issue