diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/route.rs | 2 | ||||
| -rw-r--r-- | src/search.rs | 2 |
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(); |