summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
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<StateMap>) -> Json<HashMap<String, PrinterState>> {
+async fn root(State(state): State<StateMap>) -> Json<BTreeMap<String, PrinterState>> {
Json(
state
.iter()