diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-02-10 13:32:09 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-02-10 13:32:09 -0500 |
commit | 99d044d553c08d3b2900dbca30199083067515b2 (patch) | |
tree | b1aca71ee6d3761ae2416b51eda4c78190e347be /src | |
parent | 41d52e9cd80bfb318ec7f0969f3889d275012e37 (diff) | |
download | tor-99d044d553c08d3b2900dbca30199083067515b2.tar.gz tor-99d044d553c08d3b2900dbca30199083067515b2.zip |
Fix a Rust compilation warning; resolve bug 33212.
Diffstat (limited to 'src')
-rw-r--r-- | src/rust/protover/protover.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rust/protover/protover.rs b/src/rust/protover/protover.rs index 2661d811c4..06fdf56c69 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; |