quartiq / minimq

Minimal no_std MQTT v5.0 client implementation
MIT License
143 stars 16 forks source link

No bounds on structs #162

Closed jordens closed 1 month ago

jordens commented 1 month ago

Unless absolutely necessary.

and others

ref https://stackoverflow.com/questions/49229332/should-trait-bounds-be-duplicated-in-struct-and-impl

ryan-summers commented 1 month ago

I think the only cleanup we can do is remove the broker bound because Instant has a bound on the construction parameter: https://docs.rs/embedded-time/latest/embedded_time/struct.Instant.html