aboutsummaryrefslogtreecommitdiff
path: root/src/modules/search.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-05-17 02:12:20 -0700
committerFuwn <[email protected]>2023-05-17 02:12:20 -0700
commit0bc4ac8ba3a16aed491c3260d51406685cde2408 (patch)
tree164df292848c8ba9197ffb1607a7fa1ddcad37ed /src/modules/search.rs
parentchore(tasks): simplify formatter (diff)
downloadlocus-0bc4ac8ba3a16aed491c3260d51406685cde2408.tar.xz
locus-0bc4ac8ba3a16aed491c3260d51406685cde2408.zip
deps(windmark): bump to 0.3.9
Diffstat (limited to 'src/modules/search.rs')
-rw-r--r--src/modules/search.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/search.rs b/src/modules/search.rs
index 12a2c80..fa44382 100644
--- a/src/modules/search.rs
+++ b/src/modules/search.rs
@@ -54,7 +54,7 @@ static INDEX_WRITER: LazyLock<Mutex<tantivy::IndexWriter>> =
Mutex::new((*INDEX.lock().unwrap()).writer(SEARCH_INDEX_SIZE).unwrap())
});
-pub(super) fn module(router: &mut windmark::Router) {
+pub(super) fn module(router: &mut windmark::router::Router) {
crate::route::track_mount(
router,
"/search",
@@ -67,7 +67,7 @@ pub(super) fn module(router: &mut windmark::Router) {
if let Some(query) = context.url.query_pairs().next() {
if query.0 == "action" && query.1 == "go" {
- return windmark::Response::input(
+ return windmark::response::Response::input(
"What would you like to search for?",
);
}