Skip to main content

fetch_latest_version

Function fetch_latest_version 

Source
pub fn fetch_latest_version() -> Result<Option<String>, Box<dyn Error>>
Expand description

Asks GitHub releases whether there is a newer version. Returns Ok(Some(version_string)) if there is, Ok(None) if already current, or Err if the network request failed or the response was unparseable.