Skip to content

Commit dae51d7

Browse files
ririsoftjbr
authored andcommitted
Replace unneeded clone with borrow
1 parent 53fd6a6 commit dae51d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/headers/headers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl Headers {
6161
/// header if there aren't any. Or else append to the existing list of headers.
6262
pub fn append(&mut self, name: impl Into<HeaderName>, values: impl ToHeaderValues) {
6363
let name = name.into();
64-
match self.get_mut(name.clone()) {
64+
match self.get_mut(&name) {
6565
Some(headers) => {
6666
let mut values: HeaderValues = values.to_header_values().unwrap().collect();
6767
headers.append(&mut values);

0 commit comments

Comments
 (0)