Skip to content

Commit b3b5f03

Browse files
authored
Cleaned up markdown.rs (#1345)
1 parent 6ba605d commit b3b5f03

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pgml-dashboard/src/utils/markdown.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use crate::api::cms::{DocType, Document};
22
use crate::{templates::docs::TocLink, utils::config};
33
use anyhow::Context;
4-
use comrak::{format_html_with_plugins, parse_document, ComrakPlugins};
54
use std::cell::RefCell;
65
use std::collections::HashMap;
76
use std::path::PathBuf;
@@ -17,7 +16,6 @@ use comrak::{
1716
use convert_case;
1817
use itertools::Itertools;
1918
use regex::Regex;
20-
use serde::Deserialize;
2119
use std::fmt;
2220
use std::sync::Mutex;
2321
use url::Url;
@@ -1221,13 +1219,6 @@ pub async fn get_document(path: &PathBuf) -> anyhow::Result<String> {
12211219
Ok(tokio::fs::read_to_string(path).await?)
12221220
}
12231221

1224-
#[derive(Deserialize)]
1225-
struct SearchResultWithoutSnippet {
1226-
title: String,
1227-
contents: String,
1228-
path: String,
1229-
}
1230-
12311222
pub struct SearchResult {
12321223
pub title: String,
12331224
pub path: String,

0 commit comments

Comments
 (0)