From 0da1623788022d82d045e215e48ba0c07798a787 Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Wed, 11 Nov 2015 17:32:13 -0600 Subject: [PATCH] Made DOMString opaque. Removed the "pub" attribute from the String field of DOMString. This enables experimenting with other string representations. --- components/util/str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/util/str.rs b/components/util/str.rs index 97a3013ecad..4b190fa099a 100644 --- a/components/util/str.rs +++ b/components/util/str.rs @@ -24,7 +24,7 @@ use std::slice; use std::str::{CharIndices, FromStr, Split, from_utf8}; #[derive(Clone, PartialOrd, Ord, PartialEq, Eq, Deserialize, Serialize, Hash, Debug)] -pub struct DOMString(pub String); +pub struct DOMString(String); impl !Send for DOMString {}