diff options
author | Chelsea Holland Komlo <me@chelseakomlo.com> | 2017-10-11 15:21:20 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-10-27 10:02:08 -0400 |
commit | be583a34a3815c2c10e86094ab0610e4b7f9c869 (patch) | |
tree | be9ffef37a21f54a81e628c1911c9171bbeef202 /src/rust/protover/protover.rs | |
parent | 0c04b54d4d78f7f3117948358b3d05e644fa1aeb (diff) | |
download | tor-be583a34a3815c2c10e86094ab0610e4b7f9c869.tar.gz tor-be583a34a3815c2c10e86094ab0610e4b7f9c869.zip |
use tor allocator for string allocation in rust
Diffstat (limited to 'src/rust/protover/protover.rs')
-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 0893362cec..f85d16b73c 100644 --- a/src/rust/protover/protover.rs +++ b/src/rust/protover/protover.rs @@ -364,7 +364,7 @@ fn expand_version_range(range: &str) -> Result<Vec<u32>, &'static str> { "cannot parse protocol range upper bound", ))?; - Ok((lower...higher).collect()) + Ok((lower..=higher).collect()) } /// Checks to see if there is a continuous range of integers, starting at the |