-
Notifications
You must be signed in to change notification settings - Fork 69
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
unsafe add: will it go back to safe? #191
Comments
|
Having said that, looking at the PR that changed it, I'm not sure why this method wasn't just changed to take |
Since the poller uses the reference to the source without considering its lifetime it's essentially taking a raw pointer. I updated the signature to make this clear. |
Thanks for explaining, @notgull. I'm closing this then. |
That's really fast to close an issue. It will be good to give the user a chance to follow up before closing ;-) Line 615 in 77b4ed1
I'm wondering, why is |
It is able to take a borrowed pointer because it's not kept around. |
polling/src/lib.rs
Line 510 in 77b4ed1
Although this seems to have happened almost 6 months ago, it's sad that this API changed to be "unsafe". One of my project relies on this API heavily and we cannot upgrade to the latest "polling" due to this unsafe API.
Is there any plan to make this safe again? ("polling" is a great library, I love using it).
The text was updated successfully, but these errors were encountered: