AtherEnergy / rumqtt

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

Derive `Debug` for `MqttOptions` #84

Closed ivanovaleksey closed 6 years ago

ivanovaleksey commented 6 years ago

Hello,

I would like to define a custom structure

#[derive(Clone, Debug)]
pub struct Options {
    pub mqtt: MqttOptions,
    pub database_url: String,
}

However, right now it is impossible because Debug is not implemented for MqttOptions.

I thought we could derive Debug for MqttOptions, it wouldn't hurt anyone and maybe even would be useful for debugging purposes.

What do you think?

tekjar commented 6 years ago

Fixed in new master