mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01: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
|
/// Opaque representation of an Element, for identity comparisons. We use
|
||||||
/// NonZeroPtrMut to get the NonZero optimization.
|
/// NonZeroPtrMut to get the NonZero optimization.
|
||||||
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
|
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
|
||||||
pub struct OpaqueElement(pub NonZeroPtrMut<()>);
|
pub struct OpaqueElement(NonZeroPtrMut<()>);
|
||||||
|
|
||||||
impl OpaqueElement {
|
impl OpaqueElement {
|
||||||
/// Creates a new OpaqueElement from an arbitrarily-typed pointer.
|
/// Creates a new OpaqueElement from an arbitrarily-typed pointer.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue