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> {
2059
2059
} ;
2060
2060
2061
2061
' outer: loop {
2062
- let mut entry = match self . try_entry2 ( key) . expect ( "TODO" ) {
2062
+ let mut entry = match self . entry2 ( key) {
2063
2063
Entry :: Occupied ( mut e) => {
2064
2064
// Replace all previous values while maintaining a handle to
2065
2065
// the entry.
2066
2066
e. insert ( val) ;
2067
2067
e
2068
2068
}
2069
- Entry :: Vacant ( e) => e. try_insert_entry ( val) . expect ( "TODO" ) ,
2069
+ Entry :: Vacant ( e) => e. insert_entry ( val) ,
2070
2070
} ;
2071
2071
2072
2072
// As long as `HeaderName` is none, keep inserting the value into
@@ -2104,10 +2104,10 @@ impl<T> Extend<(HeaderName, T)> for HeaderMap<T> {
2104
2104
( iter. size_hint ( ) . 0 + 1 ) / 2
2105
2105
} ;
2106
2106
2107
- self . try_reserve ( reserve) . expect ( "size overflows MAX_SIZE" ) ;
2107
+ self . reserve ( reserve ) ;
2108
2108
2109
2109
for ( k, v) in iter {
2110
- self . try_append ( k, v) . expect ( "size overflows MAX_SIZE" ) ;
2110
+ self . append ( k, v) ;
2111
2111
}
2112
2112
}
2113
2113
}
You can’t perform that action at this time.
0 commit comments