mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Make OpaqueElement’s field private.
It’s not used anywhere, and this reduces the public API surface.
This commit is contained in:
parent
7d1dc7286a
commit
116a6de59c
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue