aboutsummaryrefslogtreecommitdiff
path: root/src/rust/protover
diff options
context:
space:
mode:
Diffstat (limited to 'src/rust/protover')
-rw-r--r--src/rust/protover/lib.rs2
-rw-r--r--src/rust/protover/protover.rs3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/rust/protover/lib.rs b/src/rust/protover/lib.rs
index 620191f88d..5a5dea4408 100644
--- a/src/rust/protover/lib.rs
+++ b/src/rust/protover/lib.rs
@@ -1,5 +1,3 @@
-#![feature(inclusive_range_syntax)]
-
//! Copyright (c) 2016-2017, The Tor Project, Inc. */
//! See LICENSE for licensing information */
diff --git a/src/rust/protover/protover.rs b/src/rust/protover/protover.rs
index 37589a83f9..8a546e09a3 100644
--- a/src/rust/protover/protover.rs
+++ b/src/rust/protover/protover.rs
@@ -362,7 +362,8 @@ fn expand_version_range(range: &str) -> Result<Vec<u32>, &'static str> {
"cannot parse protocol range upper bound",
))?;
- Ok((lower..=higher).collect())
+ // We can use inclusive range syntax when it becomes stable.
+ Ok((lower..higher+1).collect())
}
/// Checks to see if there is a continuous range of integers, starting at the