diff options
author | FxQnLr <[email protected]> | 2023-11-29 15:48:26 +0100 |
---|---|---|
committer | FxQnLr <[email protected]> | 2023-11-29 15:48:26 +0100 |
commit | 6f94a825485b1d622d8ebe88ddf3e2f426d1c69c (patch) | |
tree | babf4a5c1dcb7746185a1c97e0d889df07df20e8 /src/wol.rs | |
parent | da6367885d31698464e1bec122e3e673974427c6 (diff) | |
download | webol-6f94a825485b1d622d8ebe88ddf3e2f426d1c69c.tar webol-6f94a825485b1d622d8ebe88ddf3e2f426d1c69c.tar.gz webol-6f94a825485b1d622d8ebe88ddf3e2f426d1c69c.zip |
update to axum 0.7 and cargo update
Diffstat (limited to 'src/wol.rs')
-rw-r--r-- | src/wol.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,7 +11,7 @@ pub fn create_buffer(mac_addr: &str) -> Result<Vec<u8>, WebolError> { | |||
11 | let mut mac = Vec::new(); | 11 | let mut mac = Vec::new(); |
12 | let sp = mac_addr.split(':'); | 12 | let sp = mac_addr.split(':'); |
13 | for f in sp { | 13 | for f in sp { |
14 | mac.push(u8::from_str_radix(f, 16).map_err(WebolError::BufferParse)?) | 14 | mac.push(u8::from_str_radix(f, 16).map_err(WebolError::BufferParse)?); |
15 | }; | 15 | }; |
16 | let mut buf = vec![255; 6]; | 16 | let mut buf = vec![255; 6]; |
17 | for _ in 0..16 { | 17 | for _ in 0..16 { |