aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rust/protover/protover.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/rust/protover/protover.rs b/src/rust/protover/protover.rs
index 85cdb3060a..b8bf280d4c 100644
--- a/src/rust/protover/protover.rs
+++ b/src/rust/protover/protover.rs
@@ -364,12 +364,7 @@ pub fn protover_string_supports_protocol_or_later(
None => return false,
};
- for v in supported_versions.iter() {
- if v >= &vers {
- return true;
- }
- }
- return false;
+ supported_versions.iter().any(|v| v >= &vers)
}
/// Fully expand a version range. For example, 1-3 expands to 1,2,3