Skip to content

fix(ui): replace header parse().unwrap() with from_static()#33

Merged
lostmygithubaccount merged 2 commits into
mainfrom
cody/fix-header-unwrap
Apr 6, 2026
Merged

fix(ui): replace header parse().unwrap() with from_static()#33
lostmygithubaccount merged 2 commits into
mainfrom
cody/fix-header-unwrap

Conversation

@lostmygithubaccount
Copy link
Copy Markdown
Member

Last unwrap in production server code.

Replaces the only unwrap() in production server code with a
compile-time-safe HeaderValue construction.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lostmygithubaccount lostmygithubaccount enabled auto-merge (squash) April 6, 2026 06:54
- Fix ui.rs: use axum::http::HeaderValue::from_static (was http::)
- Fix catalog.rs: avoid bare unwrap in quote parsing, add expect() with
  invariant documentation for peeked char consumption

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lostmygithubaccount lostmygithubaccount merged commit 38da3c2 into main Apr 6, 2026
1 check passed
@lostmygithubaccount lostmygithubaccount deleted the cody/fix-header-unwrap branch April 6, 2026 07:51
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