diff options
| author | Philipp Krones <hello@philkrones.com> | 2025-06-26 19:59:04 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2025-06-26 19:59:04 +0200 |
| commit | 22c0226aff66cf302a14078092bdac97107e2099 (patch) | |
| tree | 0feea05c8d662f822d45d8d4c25603e57a28d494 | |
| parent | c950602c01b2a68b7502388d440270d4e3ee64aa (diff) | |
| download | rust-22c0226aff66cf302a14078092bdac97107e2099.tar.gz rust-22c0226aff66cf302a14078092bdac97107e2099.zip | |
Lint docs: Sort versions, so that stable comes first
I expect that most people use stable Clippy. So having `master` be the first documentation link in the list is weird. Now the versions are sorted stable->beta->master.
| -rwxr-xr-x | util/versions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/versions.py b/util/versions.py index fee0d292df1..6e06d77a771 100755 --- a/util/versions.py +++ b/util/versions.py @@ -6,11 +6,11 @@ import os import sys def key(v): - if v == "master": - return sys.maxsize if v == "stable": - return sys.maxsize - 1 + return sys.maxsize if v == "beta": + return sys.maxsize - 1 + if v == "master": return sys.maxsize - 2 if v == "pre-1.29.0": return -1 |
