cargo update, fmt and add rust_embed crate

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
Gunwant Jain
2022-01-16 23:03:53 +05:30
parent 0359a8ef52
commit 33583b71d4
8 changed files with 410 additions and 335 deletions

View File

@@ -3,8 +3,8 @@ use rocket_dyn_templates::Template;
use std::collections::HashMap;
use std::path::Path;
use crate::models::pretty_syntax::PasteIdSyntax;
use crate::models::pretty::get_pretty_body;
use crate::models::pretty_syntax::PasteIdSyntax;
#[get("/p/<id_ext>", rank = 1)]
pub async fn pretty_retrieve_ext(id_ext: PasteIdSyntax<'_>) -> Option<Template> {