Make OpaqueElement’s field private.

It’s not used anywhere, and this reduces the public API surface.
This commit is contained in:
Simon Sapin 2018-01-12 15:04:57 +01:00
parent 7d1dc7286a
commit 116a6de59c

View file

@ -15,7 +15,7 @@ use std::fmt::Debug;
/// Opaque representation of an Element, for identity comparisons. We use
/// NonZeroPtrMut to get the NonZero optimization.
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
pub struct OpaqueElement(pub NonZeroPtrMut<()>);
pub struct OpaqueElement(NonZeroPtrMut<()>);
impl OpaqueElement {
/// Creates a new OpaqueElement from an arbitrarily-typed pointer.