diff --git a/Cargo.toml b/Cargo.toml index 707074b..d89b75a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,5 @@ [workspace] +resolver = "2" members = [ "wakey", "wakey-wake" diff --git a/wakey-wake/src/main.rs b/wakey-wake/src/main.rs index 51008ba..56c0930 100644 --- a/wakey-wake/src/main.rs +++ b/wakey-wake/src/main.rs @@ -16,7 +16,7 @@ fn main() -> wakey::Result<()> { .expect("Invalid MAC address format. Please use one of the separators: [:, -, /]"); let wol = wakey::WolPacket::from_string(&mac_adress, sep)?; if wol.send_magic().is_ok() { - println!("Sent the magic packet."); + println!("Sent the magic packet to {mac_adress}"); } else { println!("Failed to send the magic packet."); } diff --git a/wakey/Cargo.toml b/wakey/Cargo.toml index 05e413e..c005f26 100644 --- a/wakey/Cargo.toml +++ b/wakey/Cargo.toml @@ -13,5 +13,5 @@ keywords = ["wol", "wake-on-lan"] categories = ["network-programming"] [dependencies] -hex = "~0.4" -arrayvec = "0.7.2" +hex = "0.4" +arrayvec = "0.7" diff --git a/wakey/src/lib.rs b/wakey/src/lib.rs index a2f7fb0..adb6a94 100644 --- a/wakey/src/lib.rs +++ b/wakey/src/lib.rs @@ -120,6 +120,7 @@ impl WolPacket { } /// Returns the underlying WoL packet bytes + #[must_use] pub fn into_inner(self) -> Packet { self.packet }