File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2059,14 +2059,14 @@ impl<T> Extend<(Option<HeaderName>, T)> for HeaderMap<T> {
20592059 } ;
20602060
20612061 ' outer: loop {
2062- let mut entry = match self . try_entry2 ( key) . expect ( "TODO" ) {
2062+ let mut entry = match self . entry2 ( key) {
20632063 Entry :: Occupied ( mut e) => {
20642064 // Replace all previous values while maintaining a handle to
20652065 // the entry.
20662066 e. insert ( val) ;
20672067 e
20682068 }
2069- Entry :: Vacant ( e) => e. try_insert_entry ( val) . expect ( "TODO" ) ,
2069+ Entry :: Vacant ( e) => e. insert_entry ( val) ,
20702070 } ;
20712071
20722072 // As long as `HeaderName` is none, keep inserting the value into
@@ -2104,10 +2104,10 @@ impl<T> Extend<(HeaderName, T)> for HeaderMap<T> {
21042104 ( iter. size_hint ( ) . 0 + 1 ) / 2
21052105 } ;
21062106
2107- self . try_reserve ( reserve) . expect ( "size overflows MAX_SIZE" ) ;
2107+ self . reserve ( reserve ) ;
21082108
21092109 for ( k, v) in iter {
2110- self . try_append ( k, v) . expect ( "size overflows MAX_SIZE" ) ;
2110+ self . append ( k, v) ;
21112111 }
21122112 }
21132113}
You can’t perform that action at this time.
0 commit comments