add proper CI (#3)
* add proper CI * fmt * badge * bump edition * working badge for crates.io
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user