From ddb5c9aea673aca09b89198b506b0d628b8b7b70 Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Fri, 21 Mar 2025 17:43:23 +0000 Subject: [PATCH] fix: expect instead of unwrap on websocket --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index f1bc202..6e9a265 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,13 +1,13 @@ use std::error::Error; -mod websocket; mod computer; mod notifications; +mod websocket; fn main() -> Result<(), Box> { dotenvy::dotenv()?; - let mut socket = websocket::connect().unwrap(); + let mut socket = websocket::connect().expect("Could not connect to WebSocket"); computer::start_sending(&mut socket); Ok(())