Skip to content

Commit

Permalink
expose Headers::new and Extensions::new
Browse files Browse the repository at this point in the history
  • Loading branch information
jbr committed Jan 16, 2021
1 parent bcfca5a commit 3a8faa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct Extensions {
impl Extensions {
/// Create an empty `Extensions`.
#[inline]
pub(crate) fn new() -> Self {
pub fn new() -> Self {
Self { map: None }
}

Expand Down
2 changes: 1 addition & 1 deletion src/headers/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub struct Headers {

impl Headers {
/// Create a new instance.
pub(crate) fn new() -> Self {
pub fn new() -> Self {
Self {
headers: HashMap::new(),
}
Expand Down

0 comments on commit 3a8faa5

Please sign in to comment.