Skip to content

Commit c97f7dd

Browse files
tottotoseanmonstar
authored andcommitted
refactor(header): remove redundant result handling
1 parent 7fca4d9 commit c97f7dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/header/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3838,7 +3838,7 @@ mod as_header_name {
38383838
impl Sealed for String {
38393839
#[inline]
38403840
fn try_entry<T>(self, map: &mut HeaderMap<T>) -> Result<Entry<'_, T>, TryEntryError> {
3841-
Ok(self.as_str().try_entry(map)?)
3841+
self.as_str().try_entry(map)
38423842
}
38433843

38443844
#[inline]

0 commit comments

Comments
 (0)