Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

chore(console-api): remove the _silence_unused_imports shim in auth/sessions.rs

xerj-orga0b42ba0c6e3
diff --git a/engine/crates/xerj-console-api/src/auth/sessions.rs b/engine/crates/xerj-console-api/src/auth/sessions.rs
index b4759df91..babe115c2 100644
--- a/engine/crates/xerj-console-api/src/auth/sessions.rs
+++ b/engine/crates/xerj-console-api/src/auth/sessions.rs
@@ -18,10 +18,7 @@
//! now < last_seen_at + idle_seconds`. `last_seen_at` is bumped on
//! every authenticated request via the extractor.
-use axum::{
- extract::FromRequestParts,
- http::{request::Parts, HeaderValue, StatusCode},
-};
+use axum::{extract::FromRequestParts, http::request::Parts};
use axum_extra::extract::cookie::{Cookie, CookieJar, SameSite};
use base64::{engine::general_purpose::URL_SAFE_NO_PAD, Engine as _};
use hmac::{Hmac, Mac};
@@ -322,9 +319,6 @@ pub fn request_is_secure(parts: &Parts) -> bool {
false
}
-#[allow(dead_code)]
-fn _silence_unused_imports(_v: HeaderValue, _s: StatusCode) {}
-
#[cfg(test)]
mod tests {
use super::*;