From ab9e0cdea4859f79f3599477185aef37e3e8f4ba Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Wed, 21 Oct 2026 11:30:52 +0200 Subject: [PATCH] Use if let for the integrated server stop request Clippy's unnecessary_unwrap rejected the is_some check followed by unwrap. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/game/saving.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/horizon-client/src/game/saving.rs b/crates/horizon-client/src/game/saving.rs index d73681634..378ffe9ce 100644 --- a/crates/horizon-client/src/game/saving.rs +++ b/crates/horizon-client/src/game/saving.rs @@ -44,8 +44,8 @@ impl Game<'_> { }); return Ok(()); } - if self.integrated.is_some() { - self.integrated.as_ref().unwrap().request_stop(); + if let Some(integrated) = &self.integrated { + integrated.request_stop(); self.pending_save = Some(ClosingSave { quit, close: true,