aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-04-27 01:04:25 -0700
committerFuwn <[email protected]>2022-04-27 01:04:25 -0700
commitc71b06d2ef66ab1805d04d732b916d571f07146a (patch)
treecca8b3858ae5e9b58399672a8f63d3285eadf456 /src
parentrefactor(macros): simplify stateless! (diff)
downloadlocus-c71b06d2ef66ab1805d04d732b916d571f07146a.tar.xz
locus-c71b06d2ef66ab1805d04d732b916d571f07146a.zip
format: unclarify
Diffstat (limited to 'src')
-rw-r--r--src/route.rs2
-rw-r--r--src/search.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/route.rs b/src/route.rs
index e3d926f..e603513 100644
--- a/src/route.rs
+++ b/src/route.rs
@@ -57,7 +57,7 @@ pub fn track_mount(
description: &str,
handler: windmark::handler::RouteResponse,
) {
- (*crate::ROUTES.lock().unwrap())
+ (*ROUTES.lock().unwrap())
.insert(route.to_string(), Route::new(description));
router.mount(route, handler);
}
diff --git a/src/search.rs b/src/search.rs
index 0ee9a6c..2d83819 100644
--- a/src/search.rs
+++ b/src/search.rs
@@ -25,7 +25,7 @@ const SEARCH_INDEX_SIZE: usize = 10_000_000;
pub static INDEX_PATH: SyncLazy<Mutex<TempDir>> =
SyncLazy::new(|| Mutex::new(TempDir::new().unwrap()));
-pub static SCHEMA: SyncLazy<Mutex<tantivy::schema::Schema>> =
+pub static SCHEMA: SyncLazy<Mutex<schema::Schema>> =
SyncLazy::new(|| {
Mutex::new({
let mut schema_builder = schema::Schema::builder();