Address tower-http deprecated warning

This commit is contained in:
Yann Simon
2026-04-03 08:49:48 +02:00
committed by Alice Ryhl
parent 0a24ff6b0a
commit 7e7a1c96f0
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -114,6 +114,7 @@ async fn list_keys(State(state): State<SharedState>) -> String {
.join("\n")
}
#[allow(deprecated)]
fn admin_routes() -> Router<SharedState> {
async fn delete_all_keys(State(state): State<SharedState>) {
state.write().unwrap().db.clear();