Midea/src/lib.rs

14 lines
255 B
Rust
Raw Normal View History

2023-09-22 10:34:35 +00:00
use std::num::ParseIntError;
2023-09-22 16:06:37 +00:00
mod cloud;
2023-09-23 09:41:49 +00:00
mod cloud_security;
2023-09-22 08:07:45 +00:00
mod discover;
2023-09-22 10:34:35 +00:00
mod security;
fn hex(s: &str) -> Result<Vec<u8>, ParseIntError> {
(0..s.len())
.step_by(2)
.map(|i| u8::from_str_radix(&s[i..i + 2], 16))
.collect()
}