Expose Protocols::new() as public.

This commit is contained in:
Nick Mathewson 2020-07-10 21:04:11 -04:00
parent 8c0bbfef2c
commit 5f00e41a6b
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ pub struct Protocols {
impl Protocols {
/// Return a new empty set of protocol versions.
fn new() -> Self {
pub fn new() -> Self {
Protocols {
recognized: [0u64; N_RECOGNIZED],
unrecognized: Vec::new(),