Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
308a4d4dd7
|
@ -86,8 +86,7 @@ impl WolPacket {
|
|||
/// Panics when input MAC is invalid (i.e. contains non-byte characters)
|
||||
fn mac_to_byte(data: &str, sep: char) -> Vec<u8> {
|
||||
data.split(sep)
|
||||
.map(|x| hex::decode(x).expect("Invalid mac!"))
|
||||
.flatten()
|
||||
.flat_map(|x| hex::decode(x).expect("Invalid mac!"))
|
||||
.collect()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user