Browse Source

autoformat, update crates

master
Lara 2 years ago
parent
commit
31b00955e6
  1. 1126
      Cargo.lock
  2. 4
      src/mqtt_commands.rs

1126
Cargo.lock

File diff suppressed because it is too large

4
src/mqtt_commands.rs

@ -45,9 +45,9 @@ impl MqttCommands {
fn handle_publish(&self, data: Publish) {
lazy_static! {
static ref matchStr: String =
static ref MATCH_STR: String =
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) {
None => {

Loading…
Cancel
Save