i just do what clippy says to do
This commit is contained in:
parent
f533986bb5
commit
ccc3cc4959
2 changed files with 3 additions and 4 deletions
|
|
@ -1,8 +1,7 @@
|
|||
use crate::markdowner::MarkdownModule;
|
||||
use lipgloss::{Border, utils::width};
|
||||
use lipgloss::Border;
|
||||
use mq_markdown::{ListStyle, RenderOptions, UrlSurroundStyle};
|
||||
use mq_view::{RenderConfig, render_markdown_with_config};
|
||||
use termimad::minimad::lines;
|
||||
use warp::Reply;
|
||||
|
||||
fn box_content(content: &String, width: i32) -> String {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use crate::{MarkdownModule, markdowner};
|
||||
use rand::seq::IteratorRandom;
|
||||
use std::{fs::ReadDir, path::PathBuf};
|
||||
use std::path::PathBuf;
|
||||
|
||||
fn random_image_module(module: &MarkdownModule, directory: &str) -> MarkdownModule {
|
||||
let image = random_image(directory);
|
||||
|
|
@ -33,7 +33,7 @@ fn random_image_module(module: &MarkdownModule, directory: &str) -> MarkdownModu
|
|||
}
|
||||
|
||||
pub fn sidebar_content(target_path: &PathBuf) -> Vec<MarkdownModule> {
|
||||
let mut sidebar_modules = markdowner::get_markdown_modules(target_path);
|
||||
let sidebar_modules = markdowner::get_markdown_modules(target_path);
|
||||
let sidebar_modules: Vec<MarkdownModule> = sidebar_modules
|
||||
.iter()
|
||||
.map(|f| match f.metadata.title.as_str() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue