make sure to borrow in getters

This commit is contained in:
seth 2024-03-30 03:42:53 -04:00
parent 29ed728fc1
commit 1ff95de3bf
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
9 changed files with 23 additions and 24 deletions

View file

@ -195,7 +195,7 @@ async fn outdated_launcher(log: &str, data: &Data) -> Result<Issue> {
let version_from_log = captures[0].replace("Prism Launcher version: ", "");
let latest_version = if let Some(storage) = &data.storage {
if let Ok(version) = storage.get_launcher_version().await {
if let Ok(version) = storage.launcher_version().await {
version
} else {
api::github::get_latest_prism_version().await?