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 +}