From fde7b26347650eb46ce32f8c48c7b448bf428f40 Mon Sep 17 00:00:00 2001 From: Nikita Podvirnyi Date: Sun, 21 Jul 2024 16:44:52 +0200 Subject: [PATCH] style: changed PR style --- src/games/genshin/fps_unlocker.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/games/genshin/fps_unlocker.rs b/src/games/genshin/fps_unlocker.rs index 0cfc2e2..4c2c6d9 100644 --- a/src/games/genshin/fps_unlocker.rs +++ b/src/games/genshin/fps_unlocker.rs @@ -51,17 +51,21 @@ impl FpsUnlocker { Ok(_) => { match Self::from_dir(dir) { Ok(Some(me)) => Ok(me), + Ok(None) => { tracing::error!("Invalid hash"); - Err(anyhow::anyhow!("Downloading failed: Invalid hash")) - }, + + anyhow::bail!("Downloading failed: invalid fps unlocker hash"); + } + Err(err) => { tracing::error!("Downloading failed: {err}"); Err(err.into()) } } - }, + } + Err(err) => { tracing::error!("Downloading failed: {err}");