-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove the <'a> requirement on TextArea #46
Comments
The lifetime parameter is used for ratatui's |
I know, hence the different block in my pr |
I saw your PR changes a bit. Do you mean adding new API which is very similar to If you want to hide the parameter and you're not benefit from it, you can do: type TextArea = TextArea<'static>; |
I tried multiple things to avoid propagating the 'a over several weeks , and yet I never tried that one :-). I know it comes with some restrictions, I need to check if it will work in gitui. |
Ty, that worked beautifully. I should have asked you in the first place |
Great. Thanks for your confirmation. |
Ha - I almost mentioned the same solution in the Ratatui side of this :D |
Could this be documented somewhere? I just spent 15 minutes adding and removing lifetimes everywhere and was about to open a duplicate of this issue. Using a |
Dropping TTA into an existing project can be very disruptive since it requires lifetime annotation. This can ripple up through an app. This makes it a barrier to adoption by other projects (speaking from experience here)
The solution would be to have a private Block equivalent that owns the title string (s) rather than using references.
The text was updated successfully, but these errors were encountered: