aboutsummaryrefslogtreecommitdiff
path: root/src/wol.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2023-11-29 15:48:26 +0100
committerFxQnLr <[email protected]>2023-11-29 15:48:26 +0100
commit6f94a825485b1d622d8ebe88ddf3e2f426d1c69c (patch)
treebabf4a5c1dcb7746185a1c97e0d889df07df20e8 /src/wol.rs
parentda6367885d31698464e1bec122e3e673974427c6 (diff)
downloadwebol-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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wol.rs b/src/wol.rs
index 0cdcae3..8755b21 100644
--- a/src/wol.rs
+++ b/src/wol.rs
@@ -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 {