From 1ba272e2da4081ac108a9c442463fadd1da656f1 Mon Sep 17 00:00:00 2001 From: Serguey Parkhomovsky Date: Sat, 21 Mar 2026 16:54:21 -0700 Subject: Sort the output --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index b6d8006..36fea1f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ use native_tls::TlsConnector; use printstats::*; use reqwest::Client; use rumqttc::{AsyncClient, Event, MqttOptions, Packet, QoS, Transport}; -use std::collections::HashMap; +use std::collections::{BTreeMap, HashMap}; use std::fs; use std::process; use std::sync::{Arc, RwLock}; @@ -211,7 +211,7 @@ async fn poll_bambu( } } -async fn root(State(state): State) -> Json> { +async fn root(State(state): State) -> Json> { Json( state .iter() -- cgit v1.2.3