tidied the rest

This commit is contained in:
Penelope Gwen 2026-02-12 16:19:11 -08:00
parent fef808baf7
commit c154155c20

View file

@ -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<dyn warp::Reply> {
@ -64,7 +55,7 @@ fn renderer(path: FullPath, user_agent: String) -> Box<dyn warp::Reply> {
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<u8> = Vec::new();
@ -74,7 +65,7 @@ fn renderer(path: FullPath, user_agent: String) -> Box<dyn warp::Reply> {
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(),