yutannihilation / savvy

A simple R extension interface using Rust
https://yutannihilation.github.io/savvy/guide/
MIT License
70 stars 4 forks source link

fix usage of `local_protect()` #279

Closed t-kalinowski closed 3 months ago

t-kalinowski commented 3 months ago

closes #278

yutannihilation commented 3 months ago

Thanks so much! It seems I forgot this basic rule of Rust for some reason... Like this one, I tend to make very basic mistakes, so this kind of contribution is really appreciated!

t-kalinowski commented 3 months ago

I only noticed it because I was recently bit by the same misconception about when Drop is invoked! It's not at all obvious after reading the Rust book.

What you've built here, savvy, is very impressive!