From 5f00e41a6bf0b90c1987d059a20c881d22cec260 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 10 Jul 2020 21:04:11 -0400 Subject: [PATCH] Expose Protocols::new() as public. --- tor-protover/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tor-protover/src/lib.rs b/tor-protover/src/lib.rs index 278cb7ce8..0ccdfce50 100644 --- a/tor-protover/src/lib.rs +++ b/tor-protover/src/lib.rs @@ -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(),