m4b / scroll

Scroll - making scrolling through buffers fun since 2016
MIT License
151 stars 36 forks source link

`IntoCtx` and `FromCtx` for `()` #105

Open Javagedes opened 6 days ago

Javagedes commented 6 days ago

Hello, I was wondering if there was a particular reason why () does not implement IntoCtx and FromCtx?

I've created a situation where I have a trait with an associated type that is required to be <Try>IntoCtx, but () would also be valid in my use-case (The associated type is used as the return type of one of the trait functions). I wanted to see if you would be open to adding the trait impls for () or if I should take a different approach. I'd be happy to add the impls if you have no issue with them being added.

Let me know if you need any additional context.

Thanks!