Skip to main content

select_version

Function select_version 

Source
pub fn select_version<'a>(
    versions: &'a [VersionInfo],
    pin: Option<&str>,
) -> Result<&'a VersionInfo, String>
Expand description

Pick the version to install: an explicit pin (yanked allowed, warned by the caller) or the newest non-yanked version.