AtherEnergy / rumqtt

Pure rust mqtt cilent
The Unlicense
202 stars 71 forks source link

Make argument types in MqttOptions::new independent #75

Closed dbrgn closed 6 years ago

dbrgn commented 6 years ago

The two argument types need to be independent. Otherwise the instance cannot be created with both a String and a &'static str instance.

An example that doesn't currently compile:

let client_id = "hello".to_string();
let client = MqttOptions::new(client_id, "eu.thethings.network:1883");
tekjar commented 6 years ago

Thanks :)