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 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-21 11:30:52 +02:00
parent d5d3f5b3c7
commit ab9e0cdea4
+2 -2
View File
@@ -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,