Privatize fake sources, drop restating docs, remove boxed iterator in capped

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
This commit is contained in:
ariandClaude Sonnet 5.5 committed 2026-10-16 08:58:41 -04:00
1 parent 8b3f91dcb7
commit d5a0373a75
9 files changed
+25 -38

No files matched your search

-3
View File
@@ -30,7 +30,6 @@ pub enum TokenCmd {
Revoke { name: String },
}
/// A token row without its hash.
#[derive(Debug, Clone, sqlx::FromRow)]
pub struct TokenInfo {
pub name: String,
@@ -39,7 +38,6 @@ pub struct TokenInfo {
pub last_used_at: Option<String>,
}
/// Hex sha256 of a token string.
pub fn hash_token(token: &str) -> String {
Sha256::digest(token.as_bytes())
.iter()
@@ -149,7 +147,6 @@ pub async fn verify(pool: &SqlitePool, token: &str) -> Result<bool> {
Ok(true)
}
/// Execute a token subcommand against the DB at `config.auth.db_path`.
pub async fn run(cmd: TokenCmd, config: &Config) -> Result<()> {
let pool = crate::db::open(config).await?;
match cmd {