nit: as above, `to_mut_unsafe_ptr` should be unnecessary