X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/b8d2f17685850ba2b22fe97b061a0233a54f6ddf..e806a32d3aa3ce53166c46b8eab5d77a9655c251:/ralf/_posts/2019-04-30-stacked-borrows-2.md?ds=sidebyside diff --git a/ralf/_posts/2019-04-30-stacked-borrows-2.md b/ralf/_posts/2019-04-30-stacked-borrows-2.md index 5731826..669d49d 100644 --- a/ralf/_posts/2019-04-30-stacked-borrows-2.md +++ b/ralf/_posts/2019-04-30-stacked-borrows-2.md @@ -80,7 +80,7 @@ pub struct Stack { {% endhighlight %} The *tag* is also simpler than it was before: there are no longer separate tags for mutable and shared references. {% highlight rust %} -pub type PtrId = NonZeroU64; +pub type PtrId = u64; pub enum Tag { Tagged(PtrId), Untagged,