From 40a73104d6b229032aca5dc631b644d7c940c2ee Mon Sep 17 00:00:00 2001 From: SilasMarvin <19626586+SilasMarvin@users.noreply.github.com> Date: Fri, 1 Mar 2024 15:26:27 -0800 Subject: [PATCH 1/2] Cleaned up markdown.rs --- pgml-dashboard/src/utils/markdown.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pgml-dashboard/src/utils/markdown.rs b/pgml-dashboard/src/utils/markdown.rs index 5a674e836..e4a65295e 100644 --- a/pgml-dashboard/src/utils/markdown.rs +++ b/pgml-dashboard/src/utils/markdown.rs @@ -1,7 +1,6 @@ use crate::api::cms::{DocType, Document}; use crate::{templates::docs::TocLink, utils::config}; use anyhow::Context; -use comrak::{format_html_with_plugins, parse_document, ComrakPlugins}; use std::cell::RefCell; use std::collections::HashMap; use std::path::PathBuf; @@ -1221,13 +1220,6 @@ pub async fn get_document(path: &PathBuf) -> anyhow::Result { Ok(tokio::fs::read_to_string(path).await?) } -#[derive(Deserialize)] -struct SearchResultWithoutSnippet { - title: String, - contents: String, - path: String, -} - pub struct SearchResult { pub title: String, pub path: String, From f29e702568ab0f88a2976809a6ac7d940fbe3264 Mon Sep 17 00:00:00 2001 From: SilasMarvin <19626586+SilasMarvin@users.noreply.github.com> Date: Fri, 1 Mar 2024 15:28:06 -0800 Subject: [PATCH 2/2] Removed unnecessary imports --- pgml-dashboard/src/utils/markdown.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/pgml-dashboard/src/utils/markdown.rs b/pgml-dashboard/src/utils/markdown.rs index e4a65295e..fc8bcae86 100644 --- a/pgml-dashboard/src/utils/markdown.rs +++ b/pgml-dashboard/src/utils/markdown.rs @@ -16,7 +16,6 @@ use comrak::{ use convert_case; use itertools::Itertools; use regex::Regex; -use serde::Deserialize; use std::fmt; use std::sync::Mutex; use url::Url; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy