carllerche / codegen

A Rust library providing a builder API to generate Rust code.
MIT License
251 stars 67 forks source link

Add Hash derive to Type #46

Open TommyAmberson opened 2 years ago

TommyAmberson commented 2 years ago

Pretty self explanatory PR. I wanted to add codegen::Type to a HashSet but to do that cleanly it would need to impl Hash. I figured someone else might want to do something similar as well so I put together this PR.

SebastienGllmt commented 1 year ago

You may have better luck submitting your PR to https://gitlab.com/IovoslavIovchev/codegen since that's the one published on crates.io