Skip to content

Commit ad6a186

Browse files
tottotoseanmonstar
authored andcommitted
refactor(header): remove manual deref
1 parent 1ae60bf commit ad6a186

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/header/map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3447,7 +3447,7 @@ mod as_header_name {
34473447
}
34483448

34493449
fn as_str(&self) -> &str {
3450-
<HeaderName>::as_str(*self)
3450+
<HeaderName>::as_str(self)
34513451
}
34523452
}
34533453

@@ -3501,7 +3501,7 @@ mod as_header_name {
35013501
}
35023502

35033503
fn as_str(&self) -> &str {
3504-
*self
3504+
self
35053505
}
35063506
}
35073507

src/header/name.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ impl HeaderName {
12841284
pub fn as_str(&self) -> &str {
12851285
match self.inner {
12861286
Repr::Standard(v) => v.as_str(),
1287-
Repr::Custom(ref v) => &*v.0,
1287+
Repr::Custom(ref v) => &v.0,
12881288
}
12891289
}
12901290

0 commit comments

Comments
 (0)