This commit is contained in:
Jonas Kruckenberg 2022-11-16 13:30:08 +01:00
parent 7820a409bf
commit 3e69eed22f
7 changed files with 51 additions and 21 deletions

View file

@ -43,6 +43,7 @@ pub enum UpdateStatus {
/// # Ok(())
/// # }
/// ```
#[inline(always)]
pub async fn check_update() -> crate::Result<UpdateResult> {
let raw = inner::checkUpdate().await?;
@ -66,6 +67,7 @@ pub async fn check_update() -> crate::Result<UpdateResult> {
/// # Ok(())
/// # }
/// ```
#[inline(always)]
pub async fn install_update() -> crate::Result<()> {
inner::installUpdate().await?;
Ok(())