Skip to content

feat: code safety — unwrap/anyhow removal (fn-34)#38

Merged
bordumb merged 5 commits intomainfrom
fn-33
Mar 6, 2026
Merged

feat: code safety — unwrap/anyhow removal (fn-34)#38
bordumb merged 5 commits intomainfrom
fn-33

Conversation

@bordumb
Copy link
Contributor

@bordumb bordumb commented Mar 6, 2026

Summary

  • Removes anyhow from auths-core runtime dependencies; replaces the anyhow-based closure in register_keys_with_macos_agent_internal() with a typed SshRegError enum — direct match, no downcasting
  • Converts 12 lock().unwrap() calls in memory.rs (MemoryKeychainHandle + IsolatedKeychainHandle) to map_err(|_| AgentError::MutexError(...)) and removes the module-level blanket #[allow]
  • Adds #[allow(clippy::unwrap_used, clippy::expect_used)] to auths-id testing module (gap vs auths-core pattern)
  • All remaining #[allow] sites in production code have inline justification comments

Test plan

  • cargo nextest run --workspace — 1567/1567 pass
  • cargo test --all --doc — 3 pass, 0 fail
  • All pre-push hooks pass (fmt, clippy, deny, python bindings, wasm, cross)

@vercel
Copy link

vercel bot commented Mar 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
auths Ready Ready Preview, Comment Mar 6, 2026 9:17pm

@bordumb bordumb merged commit 3a2adbc into main Mar 6, 2026
7 checks passed
@bordumb bordumb deleted the fn-33 branch March 6, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant