Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: update hash_content for sha2 0.11.0 compatibility - #98

Merged
ADD-SP merged 1 commit into
mainfrom
fix/sha2-0.11-compat
Mar 30, 2026
Merged

fix: update hash_content for sha2 0.11.0 compatibility#98
ADD-SP merged 1 commit into
mainfrom
fix/sha2-0.11-compat

Conversation

@xichen1997

Copy link
Copy Markdown
Contributor

Summary

sha2 0.11.0 moved from generic-array to hybrid-array, whose output type no longer implements LowerHex. This broke the hash_content() function in managed_skills.rs.

Fix

Replace format!("{digest:x}") with manual byte-to-hex iteration:

digest.iter().map(|b| format!("{b:02x}")).collect()

Supersedes #94 (Dependabot sha2 bump) by including the necessary code fix.

sha2 0.11.0 moved from generic-array to hybrid-array, whose output
type no longer implements LowerHex. Replace format!("{digest:x}")
with manual byte-to-hex conversion.
@xichen1997
xichen1997 requested a review from ADD-SP March 30, 2026 16:02
@ADD-SP
ADD-SP added this pull request to the merge queue Mar 30, 2026
Merged via the queue into main with commit 07cc319 Mar 30, 2026
4 checks passed
@ADD-SP
ADD-SP deleted the fix/sha2-0.11-compat branch March 30, 2026 16:28
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