ozgunozerk / state-shift

Macros for implementing Type-State-Pattern on your structs and methods
MIT License
206 stars 3 forks source link

🎁 [Feature Request]: Use explicit path for `PhantomData` import #4

Closed ozgunozerk closed 2 weeks ago

ozgunozerk commented 2 weeks ago

What is the feature you would like to see?

The state-shift macros currently require the user to have PhantomData in scope. The current design opens up the possibility that it can be confused by other symbols that the user may have renamed. It is better for the macro hygiene not to require PhantomData to be imported, and use the full qualifying path instead.