Skip to content

Commit c4744eb

Browse files
committed
refactor(headers): add deref of Etag to EntityTag
1 parent cbfb58b commit c4744eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/header/common/etag.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ use header::parsing::from_one_raw_str;
1111
#[derive(Clone, PartialEq, Debug)]
1212
pub struct Etag(pub EntityTag);
1313

14+
deref!(Etag => EntityTag);
15+
1416
impl Header for Etag {
1517
fn header_name() -> &'static str {
1618
"Etag"

0 commit comments

Comments
 (0)