Skip to content

Fix CI: clippy needless_borrows and rustfmt formatting#8

Draft
Copilot wants to merge 2 commits intoclaude/vault-migration-security-VShCSfrom
copilot/sub-pr-7
Draft

Fix CI: clippy needless_borrows and rustfmt formatting#8
Copilot wants to merge 2 commits intoclaude/vault-migration-security-VShCSfrom
copilot/sub-pr-7

Conversation

Copy link

Copilot AI commented Mar 7, 2026

Two CI jobs were failing in the vault migration PR: clippy (9 needless_borrows_for_generic_args errors) and fmt (formatting drift in migration.rs and ops.rs).

Changes

  • src/vault/migration.rs: Removed redundant & borrows in STANDARD.encode(...) calls inside test helpers — encode accepts impl AsRef<[u8]>, so passing owned arrays directly (e.g., nonce, sn) is sufficient
  • src/vault/migration.rs + src/vault/ops.rs: Applied cargo fmt to resolve line-length and indentation issues flagged by the format job

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: johnzfitch <10013448+johnzfitch@users.noreply.github.com>
Copilot AI changed the title [WIP] Add vault migration engine for automatic version upgrades Fix CI: clippy needless_borrows and rustfmt formatting Mar 7, 2026
@johnzfitch
Copy link
Owner

@claude review

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.

2 participants