-
Notifications
You must be signed in to change notification settings - Fork 4
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
Protect guard needs to be bound with let
#278
Comments
Also, in that block, it might be simpler to just use |
Thanks, I didn't use it because
But, now that reason 1 is no longer the case, it sounds good to me. |
yutannihilation
added a commit
that referenced
this issue
Jul 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, very nice crate + package + book!
I'm reading through the code and came across this:
savvy/src/eval.rs
Line 52 in 2e98d9c
I'm pretty sure this should be
let _guard = local_protect(charsxp);
Otherwise, the
LocalProtection
object is immediately dropped.Here is a minimal example demonstrating:
outputs:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=88fb5bb69f6a0666f51148be56d7ead0
The text was updated successfully, but these errors were encountered: