xtask: Allow spec links to use the latest spec instead of a specific version

This commit is contained in:
Kévin Commaille 2023-02-10 12:41:34 +01:00 committed by Kévin Commaille
parent 270f8196bc
commit 9194c60f4a

View file

@ -28,7 +28,7 @@ impl Spec {
/// Authorized versions in URLs pointing to the new specs.
const NEW_VERSION_WHITELIST: &'static [&'static str] =
&["v1.1", "v1.2", "v1.3", "v1.4", "v1.5", "unstable"];
&["v1.1", "v1.2", "v1.3", "v1.4", "v1.5", "latest", "unstable"];
/// Get the start of the URLs pointing to this `Spec`.
const fn url_prefix(&self) -> &'static str {