add proper CI (#3)

* add proper CI

* fmt

* badge

* bump edition

* working badge for crates.io
This commit is contained in:
Hubert
2022-06-24 11:43:48 +02:00
committed by GitHub
parent 819ff76864
commit 5162dbee8e
4 changed files with 99 additions and 19 deletions

View File

@@ -10,7 +10,7 @@ struct CmdArgs {
fn main() {
let args = CmdArgs::parse();
if let Some(m) = args.mac {
let sep = m.chars().find(|ch| *ch == ':' || *ch == '-').unwrap_or('/');
let sep = m.chars().find(|ch| *ch == ':' || *ch == '-').unwrap_or('/');
let wol = wakey::WolPacket::from_string(&m, sep);
if wol.send_magic().is_ok() {
println!("sent the magic packet.");