Skip to content

Commit 7bd00fa

Browse files
committed
Add expect message to headername conversion
1 parent d42b853 commit 7bd00fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/headers/header_name.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl From<&HeaderName> for HeaderName {
7171

7272
impl<'a> From<&'a str> for HeaderName {
7373
fn from(value: &'a str) -> Self {
74-
Self::from_str(value).unwrap()
74+
Self::from_str(value).expect("String slice should be valid ASCII")
7575
}
7676
}
7777

0 commit comments

Comments
 (0)