fix: invalid borrowing of assets_path in get_router

This commit is contained in:
2024-09-16 22:46:53 +02:00
parent ca2a0ace71
commit 262b450c75
3 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ pub fn run() {
// Adds Axum router to application state
// This makes it so we can retrieve it from any app instance (see bellow)
let router = Arc::new(Mutex::new(app::get_router(&assets_path)));
let router = Arc::new(Mutex::new(app::get_router(assets_path)));
app.manage(router);