You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is, from_raw/into_raw over transmute, and the unsafety only belongs on counter_destroy; if you did a null check inside of it, you could make it safe too.
Very interesting guide, thanks for sharing it!
The text was updated successfully, but these errors were encountered:
Hey there! I wanted to send you a PR, but couldn't find the text of the gitbook, so I'll just open an issue.
in https://davidmcneil.gitbooks.io/the-rusty-web/content/counter-example.html
this code is better written as
That is,
from_raw
/into_raw
overtransmute
, and the unsafety only belongs oncounter_destroy
; if you did a null check inside of it, you could make it safe too.Very interesting guide, thanks for sharing it!
The text was updated successfully, but these errors were encountered: