MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / classify_upgrade

Function classify_upgrade

src/upgrade.rs:279–287  ·  view source on GitHub ↗
(current: &str, latest: &'a str)

Source from the content-addressed store, hash-verified

277}
278
279fn classify_upgrade<'a>(current: &str, latest: &'a str) -> UpgradeStatus<'a> {
280 // Plain semver is safe across the version-epoch reset: `cloud::fetch_latest_*`
281 // never yields pre-reset releases (see `release_has_current_platform_asset`).
282 if cloud::is_newer_version(current, latest) {
283 UpgradeStatus::UpgradeAvailable(latest)
284 } else {
285 UpgradeStatus::AlreadyCurrent
286 }
287}
288
289#[derive(Debug, Clone, Copy, PartialEq, Eq)]
290enum UpgradeSource {

Callers 1

run_versioned_upgradeFunction · 0.85

Calls 1

is_newer_versionFunction · 0.85

Tested by

no test coverage detected