autoformat, update crates
This commit is contained in:
parent
8843e4f531
commit
31b00955e6
2 changed files with 587 additions and 571 deletions
1154
Cargo.lock
generated
1154
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -45,9 +45,9 @@ impl MqttCommands {
|
||||||
|
|
||||||
fn handle_publish(&self, data: Publish) {
|
fn handle_publish(&self, data: Publish) {
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref matchStr: String =
|
static ref MATCH_STR: String =
|
||||||
format!(r"^/{}/lights/([^/]+)/command/(\w+)$", crate::MQTT_ID);
|
format!(r"^/{}/lights/([^/]+)/command/(\w+)$", crate::MQTT_ID);
|
||||||
static ref RE: Regex = Regex::new(&matchStr).unwrap();
|
static ref RE: Regex = Regex::new(&MATCH_STR).unwrap();
|
||||||
}
|
}
|
||||||
let matching = match RE.captures(&data.topic_name) {
|
let matching = match RE.captures(&data.topic_name) {
|
||||||
None => {
|
None => {
|
||||||
|
|
Loading…
Reference in a new issue