From 116a6de59c7d5124a6a83994dd5d43fcb503eece Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 12 Jan 2018 15:04:57 +0100 Subject: [PATCH] =?UTF-8?q?Make=20OpaqueElement=E2=80=99s=20field=20privat?= =?UTF-8?q?e.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s not used anywhere, and this reduces the public API surface. --- components/selectors/tree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/selectors/tree.rs b/components/selectors/tree.rs index 7a83feb83d0..0ae6d7307a5 100644 --- a/components/selectors/tree.rs +++ b/components/selectors/tree.rs @@ -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.