thedodd / wither

An ODM for MongoDB built on the official MongoDB Rust driver.
https://docs.rs/wither
Other
325 stars 40 forks source link

Use the full path of IndexModel when sending code back to compiler. #38

Closed magiclen closed 5 years ago

magiclen commented 5 years ago

Always explicitly using mongodb::coll::options::IndexModel is annoying. So I changed the output code fn indexes() -> Vec<IndexModel> to fn indexes() -> Vec<mongodb::coll::options::IndexModel>.

thedodd commented 5 years ago

This is a good call. I had a todo item laying around somewhere (I think in one of the issues) to do this along with a few other similar updates.

I’ll give this approval and merge it ASAP!

magiclen commented 5 years ago

@thedodd

I have updated CHANGELOG.md.

thedodd commented 5 years ago

Excellent! Thanks for the changeset @magiclen!