mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
slight improvement to rust idiomicity
This commit is contained in:
parent
c80bb04542
commit
039a776367
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue