Remove 'Pretty' variants.

This commit is contained in:
2023-07-01 09:14:31 -07:00
parent fc83d56c0c
commit 8b04bd8059
4 changed files with 13 additions and 36 deletions

View File

@@ -4,7 +4,7 @@ extern crate rocket;
use std::{error::Error, io::Cursor, str::FromStr};
use glog::Flags;
use notmuch::{Notmuch, NotmuchError, SearchSummary, ThreadSet};
use notmuch::{Notmuch, NotmuchError, ThreadSet};
use rocket::{
http::{ContentType, Header},
request::Request,
@@ -51,15 +51,6 @@ async fn search(
Ok(Json(res))
}
#[get("/show/<query>/pretty")]
async fn show_pretty(
nm: &State<Notmuch>,
query: &str,
) -> Result<Json<ThreadSet>, Debug<NotmuchError>> {
let res = nm.show(query)?;
Ok(Json(res))
}
#[get("/show/<query>")]
async fn show(nm: &State<Notmuch>, query: &str) -> Result<Json<ThreadSet>, Debug<NotmuchError>> {
let res = nm.show(query)?;
@@ -153,7 +144,6 @@ async fn main() -> Result<(), Box<dyn Error>> {
refresh,
search_all,
search,
show_pretty,
show
],
)