Skip to content
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

Change watchdog_enabled to use Duration #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tbu-
Copy link
Contributor

@tbu- tbu- commented Jan 16, 2025

Also return the value via the return value instead of via an out parameter.

tbu- added 3 commits January 16, 2025 11:55
This does not fix the actual issue but alerts users to this unsoundness
issue. Also changes the examples so that the parameter isn't set to
`true` mindlessly.

CC lnicola#9
They need to be `unsafe` because `std::env::remove_var` is unsafe.

Fixes lnicola#9.
Also return the value via the return value instead of via an out
parameter.
@tbu-
Copy link
Contributor Author

tbu- commented Jan 16, 2025

Based on top of #13 because it'll likely conflict otherwise.

For reviewing, just look at the last commit.

Copy link
Owner

@lnicola lnicola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This totally makes sense, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants