aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 11da61c..946d515 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -41,7 +41,6 @@ use std::{collections::HashMap, lazy::SyncLazy, sync::Mutex};
use pickledb::PickleDb;
use tokio::time::Instant;
-use yarte::Template;
const SEARCH_SIZE: usize = 10;
const ERROR_HANDLER_RESPONSE: &str =
@@ -68,7 +67,7 @@ static DATABASE: SyncLazy<Mutex<PickleDb>> = SyncLazy::new(|| {
static ROUTES: SyncLazy<Mutex<HashMap<String, route::Route>>> =
SyncLazy::new(|| Mutex::new(HashMap::new()));
-#[derive(Template)]
+#[derive(yarte::Template)]
#[template(path = "main")]
struct Main<'a> {
body: &'a str,