Use associated constants in Host
Xion opened this issue · comments
Karol Kuczmarski commented
With Rust 1.20, we can make Host::id
an associated constant rather than a method.
Karol Kuczmarski commented
Actually, this needs to stay a method since otherwise Basic
hosts would have to impl Host
themselves via unique types rather than just creating & returning a plain Basic
object. Since we have like half a dozen of those basic hosts, it doesn't make to introduce additional boilerplate.