chore: 📎 + fmt
This commit is contained in:
@@ -19,7 +19,7 @@ use crate::webserver::get_log::get_log;
|
||||
use crate::webserver::get_static::{serve_bundle, serve_favicon, serve_index};
|
||||
use crate::webserver::ota::ota_operations;
|
||||
use crate::webserver::post_json::{
|
||||
board_test, night_lamp_test, pump_test, set_config, wifi_scan, write_time, detect_sensors,
|
||||
board_test, detect_sensors, night_lamp_test, pump_test, set_config, wifi_scan, write_time,
|
||||
};
|
||||
use crate::{bail, BOARD_ACCESS};
|
||||
use alloc::borrow::ToOwned;
|
||||
@@ -64,7 +64,7 @@ impl Handler for HTTPRequestRouter {
|
||||
file_operations(conn, method, &path, &prefix).await?
|
||||
} else if path == "/ota" {
|
||||
ota_operations(conn, method).await.map_err(|e| {
|
||||
error!("Error handling ota: {}", e);
|
||||
error!("Error handling ota: {e}");
|
||||
e
|
||||
})?
|
||||
} else {
|
||||
@@ -238,7 +238,7 @@ where
|
||||
},
|
||||
Err(err) => {
|
||||
let error_text = err.to_string();
|
||||
info!("error handling process {}", error_text);
|
||||
info!("error handling process {error_text}");
|
||||
conn.initiate_response(
|
||||
500,
|
||||
Some("OK"),
|
||||
|
||||
Reference in New Issue
Block a user