AtherEnergy / rumqtt

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

Is it needed the mutable reference in publish method? #171

Open leoniloris opened 5 years ago

leoniloris commented 5 years ago

Is it needed the mutable reference in publish method? or Am I missing something? Here, one can see that the publish method requires a mutable reference of self, but I don't really see the reason why and it does not seems to be really correct to mutate it in the publish.

Why can't it be cloned?