fix(ci): borrow HeaderMap in rbac user_from_headers calls #3
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hex/zeno-rmm!3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ci-rbac-headers-borrow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes E0308 (mismatched types) compile errors in
crates/zeno-server/src/api/rbac.rsat lines 150 and 243. The functionuser_from_headers(defined incrates/zeno-server/src/api/auth.rs:112) expects&HeaderMap, but the two call sites were passing the ownedHeaderMapvalue. The compiler suggested borrowing with&headers, which is what this change does.Failing CI Run
https://github.com/HexC0d3rz/zeno-rmm/actions/runs/27602319638
The "Test" and "Clippy" jobs both failed on commit
e468c645onmaindue to these two E0308 errors.Compile Errors Fixed
Diff
Verification
cargo fmt --all— cleancargo test --workspace --all-targets— all 129 tests pass (27 + 9 + 69 + 0 + 8 + 16 across zeno-server, zeno-agent, zeno-shared, zeno-installer, codec_serde, message_roundtrip test binaries)cargo clippy --workspace --all-targets -- -D warnings— the two rbac.rs E0308 errors are resolved; remaining clippy errors are pre-existing on main and unrelated to this fix