aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-02-10 14:17:09 -0500
committerNick Mathewson <nickm@torproject.org>2020-02-10 14:17:09 -0500
commited2cbbf71680fd2be67eb7b74c44572e58895d72 (patch)
treeb4a469a8c707e5377d7d6e81cb821afe4d3f749b /src
parentd0d2aba9f32fd6725f84f5d8a91ef6798e3dbb73 (diff)
parentf3fa22bf1b52dfce65a37e6a84bac8635916e8c2 (diff)
downloadtor-release-0.4.0.tar.gz
tor-release-0.4.0.zip
Merge branch 'maint-0.4.0' into release-0.4.0release-0.4.0
Diffstat (limited to 'src')
-rw-r--r--src/rust/protover/protover.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rust/protover/protover.rs b/src/rust/protover/protover.rs
index 74158d9f6d..a08e835393 100644
--- a/src/rust/protover/protover.rs
+++ b/src/rust/protover/protover.rs
@@ -26,7 +26,7 @@ const FIRST_TOR_VERSION_TO_ADVERTISE_PROTOCOLS: &'static str = "0.2.9.3-alpha";
/// before concluding that someone is trying to DoS us
///
/// C_RUST_COUPLED: protover.c `MAX_PROTOCOLS_TO_EXPAND`
-const MAX_PROTOCOLS_TO_EXPAND: usize = (1 << 16);
+const MAX_PROTOCOLS_TO_EXPAND: usize = 1 << 16;
/// The maximum size an `UnknownProtocol`'s name may be.
pub(crate) const MAX_PROTOCOL_NAME_LENGTH: usize = 100;