Skip to content

Commit

Permalink
Make Upgrade::new pub(crate)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Sep 3, 2023
1 parent a80d726 commit 848f360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libp2p/src/builder/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub(crate) struct Upgrade<U, F> {

impl<U, F> Upgrade<U, F> {
/// Applies the function on the result of the upgrade.
pub fn new(upgrade: U, fun: F) -> Self {
pub(crate) fn new(upgrade: U, fun: F) -> Self {
Upgrade { upgrade, fun }
}
}
Expand Down

0 comments on commit 848f360

Please sign in to comment.