From ad5b7bb00f1760b8dafb1c4b038bc250fa95b715 Mon Sep 17 00:00:00 2001 From: Xorycode Date: Wed, 17 Apr 2024 16:17:24 +0300 Subject: [PATCH] fix: reboot passes rust_analyzer --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 239717d..88fa359 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,7 +56,9 @@ pub fn handle_client() { disk.write_all(&buffer).unwrap(); // Reboot. - Command::new("reboot").unwrap(); + let _reboot = Command::new("reboot") + .output() + .unwrap(); } }