Xion / gisht

Gists in the shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use associated constants in Host

Xion opened this issue · comments

With Rust 1.20, we can make Host::id an associated constant rather than a method.

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.