From e60cca02995ff1dfffc611f4d2a62d72bc69a923 Mon Sep 17 00:00:00 2001 From: Carlos Marchena Date: Thu, 7 Mar 2024 12:46:17 +0100 Subject: [PATCH] Update iot.rs --- 2023/rust/rust/iot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2023/rust/rust/iot.rs b/2023/rust/rust/iot.rs index 0d269c1c..ef1ce5ad 100644 --- a/2023/rust/rust/iot.rs +++ b/2023/rust/rust/iot.rs @@ -2,7 +2,7 @@ macro_rules! impl_iot_device { ($type:ty) => { impl IOTDevice for $type { fn connect(&mut self) { - self.connection.connect("Arjan", "localhost", 8080); + self.connection.connect("Arjan".to_string(), "localhost".to_string(), 8080); } fn disconnect(&mut self) { @@ -105,4 +105,4 @@ fn main() { light.send("Hello"); light.disconnect(); println!("{:?}", light.receive()); -} \ No newline at end of file +}