blackgear / rustdoc_seeker

rustdoc-seeker parse the `search-index.js` generated by `rustdoc` and provide fast searching ability
MIT License
5 stars 4 forks source link

URL generating shouldn't use Display #4

Open upsuper opened 5 years ago

upsuper commented 5 years ago

It feels like an abuse of Display trait... It should have an independent method, ideally accept an fmt::Write.

blackgear commented 5 years ago

Now we have fmt_naive (eg: std::vec::Vec) and fmt_url, but using fmt_url in Display's impls.

This should be an proper way....