mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 19:53:29 +00:00
linted extension calls on init function and command index
This commit is contained in:
@@ -71,7 +71,6 @@ impl WsServer {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
lazy_static! {
|
||||
static ref WEBSOCKET_SERVER: Arc<Mutex<Option<WsServer>>> = Arc::new(Mutex::new(None));
|
||||
}
|
||||
@@ -101,7 +100,6 @@ pub fn message(payload: String) -> &'static str {
|
||||
"Sending message to all WebSocket clients"
|
||||
}
|
||||
|
||||
|
||||
pub fn location(payload: LocationPayload) -> &'static str {
|
||||
if let Some(ref server) = *WEBSOCKET_SERVER.lock().unwrap() {
|
||||
server.send_message(payload);
|
||||
|
||||
Reference in New Issue
Block a user