From 86070deebe5f28361c65f674a704546d0465ffd3 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 10 Mar 2024 19:32:55 +0000 Subject: [PATCH] fix: update for comfy-tables v5.0.0 --- src/logs.rs | 6 +++--- src/main.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/logs.rs b/src/logs.rs index 7ce58dc..f31cf92 100644 --- a/src/logs.rs +++ b/src/logs.rs @@ -2,7 +2,7 @@ use std::fs; use chrono::{DateTime, Local}; 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 flexi_logger::{FileSpec, LevelFilter}; use log::error; @@ -38,7 +38,7 @@ pub fn display_summary( println!("\n{}", "Partially failed downloads".yellow().bold()); let mut table_partial = Table::new(); table_partial - .load_preset(UTF8_HORIZONTAL_BORDERS_ONLY) + .load_preset(UTF8_HORIZONTAL_ONLY) .set_header(vec![ Cell::new("Link").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()); let mut table_failed = Table::new(); table_failed - .load_preset(UTF8_HORIZONTAL_BORDERS_ONLY) + .load_preset(UTF8_HORIZONTAL_ONLY) .set_header(vec![ Cell::new("Link").set_alignment(CellAlignment::Center), Cell::new("Reason").set_alignment(CellAlignment::Center), diff --git a/src/main.rs b/src/main.rs index d82ac95..fa49ab0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ extern crate lazy_static; use std::process::exit; 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 http::download; use indicatif::{ProgressBar, ProgressStyle}; @@ -70,7 +70,7 @@ fn run(app_config: AppConfig) { let mut successful_articles_table = Table::new(); successful_articles_table .load_preset(UTF8_FULL) - .load_preset(UTF8_HORIZONTAL_BORDERS_ONLY) + .load_preset(UTF8_HORIZONTAL_ONLY) .set_content_arrangement(ContentArrangement::Dynamic); match app_config.export_type {