From c154155c207d034d32c0b0f070a8a52587ac9af3 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Thu, 12 Feb 2026 16:19:11 -0800 Subject: [PATCH] tidied the rest --- src/main.rs | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/main.rs b/src/main.rs index e8e1c18..8befef1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,19 +1,10 @@ #![warn(unused_extern_crates)] -use std::{ - fs::ReadDir, - io::{BufWriter, Write, stdout}, - ops::Deref, - path::{self, Path, PathBuf}, - str::FromStr, -}; +#![allow(clippy::style)] +use std::{path::PathBuf, str::FromStr}; -use ansi_align::{AlignOptions, ansi_align, ansi_align_with_options}; -use borderrs::BorderFormatter; -use boxen::boxen; -use lipgloss::{Border, Position}; -use mq_markdown::{ColorTheme, ListStyle, Markdown, Node, RenderOptions, UrlSurroundStyle}; -use mq_view::{RenderConfig, render_markdown, render_markdown_with_config}; -use serde::de::value; +use lipgloss::Border; +use mq_markdown::{ColorTheme, ListStyle, RenderOptions, UrlSurroundStyle}; +use mq_view::{RenderConfig, render_markdown_with_config}; use warp::{Filter, filters::path::FullPath}; fn renderer(path: FullPath, user_agent: String) -> Box { @@ -64,7 +55,7 @@ fn renderer(path: FullPath, user_agent: String) -> Box { header_full_width_highlight: false, }; - let styled_mq = mq_view::render_markdown_to_string(&mq).unwrap(); + let _styled_mq = mq_view::render_markdown_to_string(&mq).unwrap(); let mut writer: Vec = Vec::new(); @@ -74,7 +65,7 @@ fn renderer(path: FullPath, user_agent: String) -> Box { println!("{}", render_string); - let md = mdriver::StreamingParser::new().feed( + let _md = mdriver::StreamingParser::new().feed( termimad::text(std::fs::read_to_string(x).unwrap_or_default().as_str()) .to_string() .as_str(),