Skip to content

Commits on Source 2

  • Marcel Hellwig's avatar
    Changed `*mut ...` to `Option<NonNull<...>>` · 6ac4f576
    Marcel Hellwig authored
    Instead of a raw pointer use a combination of Option and NonNull which
    is exactly the same size as a raw pointer, expect you cannot access a
    nullpointer by accident.
    The assembly is completly identical on the hot path (the one that does not
    procude a panic). Only one move more on the cold path (because of the
    unwrap message (?).
    6ac4f576
  • Jeremy Soller's avatar
    Merge branch 'master' into 'master' · 4a69eba2
    Jeremy Soller authored
    Changed `*mut ...` to `Option<NonNull<...>>`
    
    See merge request !1
    4a69eba2
Loading