Skip to content

Commit 3a8faa5

Browse files
committed
expose Headers::new and Extensions::new
1 parent bcfca5a commit 3a8faa5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/extensions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub struct Extensions {
2121
impl Extensions {
2222
/// Create an empty `Extensions`.
2323
#[inline]
24-
pub(crate) fn new() -> Self {
24+
pub fn new() -> Self {
2525
Self { map: None }
2626
}
2727

Diff for: src/headers/headers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub struct Headers {
3434

3535
impl Headers {
3636
/// Create a new instance.
37-
pub(crate) fn new() -> Self {
37+
pub fn new() -> Self {
3838
Self {
3939
headers: HashMap::new(),
4040
}

0 commit comments

Comments
 (0)