taiki-e / pin-project-lite

A lightweight version of pin-project written with declarative macros.
https://docs.rs/pin-project-lite
Apache License 2.0
216 stars 15 forks source link

Support recognizing default generic parameters. #6

Closed kennytm closed 4 years ago

kennytm commented 4 years ago

Make this work:

pin_project! {
    struct Foo<T = Bar> {
        field: T,
    }
}

The default parameter is not applied to the generated Projection/ProjectionRef/__Origin types.

taiki-e commented 4 years ago

Thanks!

bors r+

bors[bot] commented 4 years ago

Build succeeded

taiki-e commented 4 years ago

Published in 0.1.2.