diff --git a/components/gfx/Cargo.toml b/components/gfx/Cargo.toml index f66ca8c658b..dc938835335 100644 --- a/components/gfx/Cargo.toml +++ b/components/gfx/Cargo.toml @@ -26,7 +26,7 @@ serde = "0.6" serde_macros = "0.6" servo-skia = "0.20130412.0" smallvec = "0.1" -string_cache = {version = "0.2.9", features = ["heap_size"]} +string_cache = {version = "0.2.10", features = ["heap_size"]} time = "0.1.12" unicode-script = { version = "0.1", features = ["harfbuzz"] } url = {version = "0.5.5", features = ["heap_size"]} diff --git a/components/gfx/font_cache_thread.rs b/components/gfx/font_cache_thread.rs index 89eefe9205b..7af1e0889f0 100644 --- a/components/gfx/font_cache_thread.rs +++ b/components/gfx/font_cache_thread.rs @@ -230,7 +230,7 @@ impl FontCache { let family_name = LowercaseString::new(family.name()); let templates = &mut self.web_families.get_mut(&family_name).unwrap(); - templates.add_template(Atom::from(&*url.to_string()), Some(bytes)); + templates.add_template(Atom::from(url.to_string()), Some(bytes)); drop(result.send(())); } Command::Exit(result) => { diff --git a/components/layout/Cargo.toml b/components/layout/Cargo.toml index 6d34a1dd8c6..6658b5d1612 100644 --- a/components/layout/Cargo.toml +++ b/components/layout/Cargo.toml @@ -75,7 +75,7 @@ serde = "0.6" serde_json = "0.6" serde_macros = "0.6" smallvec = "0.1" -string_cache = {version = "0.2.9", features = ["heap_size"]} +string_cache = {version = "0.2.10", features = ["heap_size"]} time = "0.1" unicode-bidi = "0.2" unicode-script = { version = "0.1", features = ["harfbuzz"] } diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml index 103259cc1db..f0dd201bf37 100644 --- a/components/script/Cargo.toml +++ b/components/script/Cargo.toml @@ -84,7 +84,7 @@ rustc-serialize = "0.3" selectors = {version = "0.5", features = ["heap_size"]} serde = "0.6" smallvec = "0.1" -string_cache = {version = "0.2.9", features = ["heap_size", "unstable"]} +string_cache = {version = "0.2.10", features = ["heap_size", "unstable"]} time = "0.1.12" unicase = "1.0" url = {version = "0.5.5", features = ["heap_size"]} diff --git a/components/script/dom/bindings/xmlname.rs b/components/script/dom/bindings/xmlname.rs index 6975fb8d702..b7dd7ca7d19 100644 --- a/components/script/dom/bindings/xmlname.rs +++ b/components/script/dom/bindings/xmlname.rs @@ -174,6 +174,6 @@ pub fn xml_name_type(name: &str) -> XMLName { pub fn namespace_from_domstring(url: Option) -> Namespace { match url { None => ns!(), - Some(s) => Namespace(Atom::from(&*s)), + Some(s) => Namespace(Atom::from(s)), } } diff --git a/components/script/dom/closeevent.rs b/components/script/dom/closeevent.rs index 44635462ad2..edf0c6199df 100644 --- a/components/script/dom/closeevent.rs +++ b/components/script/dom/closeevent.rs @@ -67,7 +67,7 @@ impl CloseEvent { EventCancelable::NotCancelable }; Ok(CloseEvent::new(global, - Atom::from(&*type_), + Atom::from(type_), bubbles, cancelable, init.wasClean, diff --git a/components/script/dom/cssstyledeclaration.rs b/components/script/dom/cssstyledeclaration.rs index f6683f9eae5..7c61098dc88 100644 --- a/components/script/dom/cssstyledeclaration.rs +++ b/components/script/dom/cssstyledeclaration.rs @@ -146,7 +146,7 @@ impl CSSStyleDeclarationMethods for CSSStyleDeclaration { // Step 1 property.make_ascii_lowercase(); - let property = Atom::from(&*property); + let property = Atom::from(property); if self.readonly { // Readonly style declarations are used for getComputedStyle. @@ -185,7 +185,7 @@ impl CSSStyleDeclarationMethods for CSSStyleDeclaration { fn GetPropertyPriority(&self, mut property: DOMString) -> DOMString { // Step 1 property.make_ascii_lowercase(); - let property = Atom::from(&*property); + let property = Atom::from(property); // Step 2 if let Some(shorthand) = Shorthand::from_name(&property) { diff --git a/components/script/dom/customevent.rs b/components/script/dom/customevent.rs index f56e76ab7ff..3dd202d1aee 100644 --- a/components/script/dom/customevent.rs +++ b/components/script/dom/customevent.rs @@ -53,7 +53,7 @@ impl CustomEvent { init: &CustomEventBinding::CustomEventInit) -> Fallible> { Ok(CustomEvent::new(global, - Atom::from(&*type_), + Atom::from(type_), init.parent.bubbles, init.parent.cancelable, unsafe { HandleValue::from_marked_location(&init.detail) })) @@ -87,7 +87,7 @@ impl CustomEventMethods for CustomEvent { can_bubble: bool, cancelable: bool, detail: HandleValue) { - self.init_custom_event(Atom::from(&*type_), can_bubble, cancelable, detail) + self.init_custom_event(Atom::from(type_), can_bubble, cancelable, detail) } // https://dom.spec.whatwg.org/#dom-event-istrusted diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 7a1ce36e5e4..b7c46c9666d 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -536,7 +536,7 @@ impl Document { // Step 3 & 4 String::from_utf8(percent_decode(fragid.as_bytes())).ok() // Step 5 - .and_then(|decoded_fragid| self.get_element_by_id(&Atom::from(&*decoded_fragid))) + .and_then(|decoded_fragid| self.get_element_by_id(&Atom::from(decoded_fragid))) // Step 6 .or_else(|| self.get_anchor_by_name(fragid)) // Step 7 @@ -1847,7 +1847,7 @@ impl DocumentMethods for Document { Vacant(entry) => { let mut tag_copy = tag_name; tag_copy.make_ascii_lowercase(); - let ascii_lower_tag = Atom::from(&*tag_copy); + let ascii_lower_tag = Atom::from(tag_copy); let result = HTMLCollection::by_atomic_tag_name(&self.window, self.upcast(), tag_atom, @@ -1864,7 +1864,7 @@ impl DocumentMethods for Document { tag_name: DOMString) -> Root { let ns = namespace_from_domstring(maybe_ns); - let local = Atom::from(&*tag_name); + let local = Atom::from(tag_name); let qname = QualName::new(ns, local); match self.tagns_map.borrow_mut().entry(qname.clone()) { Occupied(entry) => Root::from_ref(entry.get()), @@ -1895,7 +1895,7 @@ impl DocumentMethods for Document { // https://dom.spec.whatwg.org/#dom-nonelementparentnode-getelementbyid fn GetElementById(&self, id: DOMString) -> Option> { - self.get_element_by_id(&Atom::from(&*id)) + self.get_element_by_id(&Atom::from(id)) } // https://dom.spec.whatwg.org/#dom-document-createelement @@ -1907,7 +1907,7 @@ impl DocumentMethods for Document { if self.is_html_document { local_name.make_ascii_lowercase(); } - let name = QualName::new(ns!(html), Atom::from(&*local_name)); + let name = QualName::new(ns!(html), Atom::from(local_name)); Ok(Element::create(name, None, self, ElementCreator::ScriptCreated)) } @@ -1931,12 +1931,10 @@ impl DocumentMethods for Document { if self.is_html_document { local_name.make_ascii_lowercase(); } - let name = Atom::from(&*local_name); - // repetition used because string_cache::atom::Atom is non-copyable - let l_name = Atom::from(&*local_name); + let name = Atom::from(local_name); let value = AttrValue::String(DOMString::new()); - Ok(Attr::new(&self.window, name, value, l_name, ns!(), None, None)) + Ok(Attr::new(&self.window, name.clone(), value, name, ns!(), None, None)) } // https://dom.spec.whatwg.org/#dom-document-createattributens @@ -1947,7 +1945,7 @@ impl DocumentMethods for Document { let (namespace, prefix, local_name) = try!(validate_and_extract(namespace, &qualified_name)); let value = AttrValue::String(DOMString::new()); - let qualified_name = Atom::from(&*qualified_name); + let qualified_name = Atom::from(qualified_name); Ok(Attr::new(&self.window, local_name, value, @@ -2493,7 +2491,7 @@ impl DocumentMethods for Document { _ => false, } } - let name = Atom::from(&*name); + let name = Atom::from(name); let root = self.upcast::(); { // Step 1. diff --git a/components/script/dom/documentfragment.rs b/components/script/dom/documentfragment.rs index 471da29be51..f77fb658d41 100644 --- a/components/script/dom/documentfragment.rs +++ b/components/script/dom/documentfragment.rs @@ -55,7 +55,7 @@ impl DocumentFragmentMethods for DocumentFragment { // https://dom.spec.whatwg.org/#dom-nonelementparentnode-getelementbyid fn GetElementById(&self, id: DOMString) -> Option> { let node = self.upcast::(); - let id = Atom::from(&*id); + let id = Atom::from(id); node.traverse_preorder().filter_map(Root::downcast::).find(|descendant| { match descendant.get_attribute(&ns!(), &atom!("id")) { None => false, diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index 60ed7338e9e..c1a60c3c2e5 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -617,7 +617,7 @@ impl Element { if self.html_element_in_html_document() { name.make_ascii_lowercase(); } - Atom::from(&*name) + Atom::from(name) } pub fn namespace(&self) -> &Namespace { @@ -925,7 +925,7 @@ impl Element { None => qname.local.clone(), Some(ref prefix) => { let name = format!("{}:{}", &**prefix, &*qname.local); - Atom::from(&*name) + Atom::from(name) }, }; let value = self.parse_attribute(&qname.ns, &qname.local, value); @@ -952,7 +952,7 @@ impl Element { } // Steps 2-5. - let name = Atom::from(&*name); + let name = Atom::from(name); let value = self.parse_attribute(&ns!(), &name, value); self.set_first_matching_attribute(name.clone(), value, @@ -1249,7 +1249,7 @@ impl ElementMethods for Element { local_name: DOMString) -> Option> { let namespace = &namespace_from_domstring(namespace); - self.get_attribute(namespace, &Atom::from(&*local_name)) + self.get_attribute(namespace, &Atom::from(local_name)) } // https://dom.spec.whatwg.org/#dom-element-setattribute @@ -1277,7 +1277,7 @@ impl ElementMethods for Element { value: DOMString) -> ErrorResult { let (namespace, prefix, local_name) = try!(validate_and_extract(namespace, &qualified_name)); - let qualified_name = Atom::from(&*qualified_name); + let qualified_name = Atom::from(qualified_name); let value = self.parse_attribute(&namespace, &local_name, value); self.set_first_matching_attribute( local_name.clone(), value, qualified_name, namespace.clone(), prefix, @@ -1344,7 +1344,7 @@ impl ElementMethods for Element { // https://dom.spec.whatwg.org/#dom-element-removeattributens fn RemoveAttributeNS(&self, namespace: Option, local_name: DOMString) { let namespace = namespace_from_domstring(namespace); - let local_name = Atom::from(&*local_name); + let local_name = Atom::from(local_name); self.remove_attribute(&namespace, &local_name); } diff --git a/components/script/dom/errorevent.rs b/components/script/dom/errorevent.rs index fd6c8d94e4a..c9d5a79b0fd 100644 --- a/components/script/dom/errorevent.rs +++ b/components/script/dom/errorevent.rs @@ -99,7 +99,7 @@ impl ErrorEvent { // Dictionaries need to be rooted // https://github.com/servo/servo/issues/6381 let error = RootedValue::new(global.get_cx(), init.error); - let event = ErrorEvent::new(global, Atom::from(&*type_), + let event = ErrorEvent::new(global, Atom::from(type_), bubbles, cancelable, msg, file_name, line_num, col_num, diff --git a/components/script/dom/event.rs b/components/script/dom/event.rs index bae9dea1433..5aa97872647 100644 --- a/components/script/dom/event.rs +++ b/components/script/dom/event.rs @@ -96,7 +96,7 @@ impl Event { init: &EventBinding::EventInit) -> Fallible> { let bubbles = if init.bubbles { EventBubbles::Bubbles } else { EventBubbles::DoesNotBubble }; let cancelable = if init.cancelable { EventCancelable::Cancelable } else { EventCancelable::NotCancelable }; - Ok(Event::new(global, Atom::from(&*type_), bubbles, cancelable)) + Ok(Event::new(global, Atom::from(type_), bubbles, cancelable)) } pub fn init_event(&self, type_: Atom, bubbles: bool, cancelable: bool) { @@ -240,7 +240,7 @@ impl EventMethods for Event { type_: DOMString, bubbles: bool, cancelable: bool) { - self.init_event(Atom::from(&*type_), bubbles, cancelable) + self.init_event(Atom::from(type_), bubbles, cancelable) } // https://dom.spec.whatwg.org/#dom-event-istrusted diff --git a/components/script/dom/eventtarget.rs b/components/script/dom/eventtarget.rs index 9c7c62600dc..36aae8800da 100644 --- a/components/script/dom/eventtarget.rs +++ b/components/script/dom/eventtarget.rs @@ -390,7 +390,7 @@ impl EventTarget { b"colno\0" as *const u8 as *const c_char, b"error\0" as *const u8 as *const c_char]; // step 10 - let is_error = ty == &Atom::from("error") && self.is::(); + let is_error = ty == &atom!("error") && self.is::(); let args = unsafe { if is_error { &ERROR_ARG_NAMES[..] @@ -494,7 +494,7 @@ impl EventTargetMethods for EventTarget { capture: bool) { if let Some(listener) = listener { let mut handlers = self.handlers.borrow_mut(); - let entry = match handlers.entry(Atom::from(&*ty)) { + let entry = match handlers.entry(Atom::from(ty)) { Occupied(entry) => entry.into_mut(), Vacant(entry) => entry.insert(EventListeners(vec!())), }; @@ -517,7 +517,7 @@ impl EventTargetMethods for EventTarget { capture: bool) { if let Some(ref listener) = listener { let mut handlers = self.handlers.borrow_mut(); - let entry = handlers.get_mut(&Atom::from(&*ty)); + let entry = handlers.get_mut(&Atom::from(ty)); for entry in entry { let phase = if capture { ListenerPhase::Capturing } else { ListenerPhase::Bubbling }; let old_entry = EventListenerEntry { diff --git a/components/script/dom/formdata.rs b/components/script/dom/formdata.rs index 3055e182be6..6f6b47d42ce 100644 --- a/components/script/dom/formdata.rs +++ b/components/script/dom/formdata.rs @@ -59,7 +59,7 @@ impl FormDataMethods for FormData { // https://xhr.spec.whatwg.org/#dom-formdata-append fn Append(&self, name: USVString, value: USVString) { let mut data = self.data.borrow_mut(); - match data.entry(Atom::from(&*name.0)) { + match data.entry(Atom::from(name.0)) { Occupied(entry) => entry.into_mut().push(FormDatum::StringData(value.0)), Vacant (entry) => { entry.insert(vec!(FormDatum::StringData(value.0))); } } @@ -70,7 +70,7 @@ impl FormDataMethods for FormData { fn Append_(&self, name: USVString, value: &Blob, filename: Option) { let blob = FormDatum::BlobData(JS::from_rooted(&self.get_file_or_blob(value, filename))); let mut data = self.data.borrow_mut(); - match data.entry(Atom::from(&*name.0)) { + match data.entry(Atom::from(name.0)) { Occupied(entry) => entry.into_mut().push(blob), Vacant(entry) => { entry.insert(vec!(blob)); @@ -80,13 +80,13 @@ impl FormDataMethods for FormData { // https://xhr.spec.whatwg.org/#dom-formdata-delete fn Delete(&self, name: USVString) { - self.data.borrow_mut().remove(&Atom::from(&*name.0)); + self.data.borrow_mut().remove(&Atom::from(name.0)); } // https://xhr.spec.whatwg.org/#dom-formdata-get fn Get(&self, name: USVString) -> Option { self.data.borrow() - .get(&Atom::from(&*name.0)) + .get(&Atom::from(name.0)) .map(|entry| match entry[0] { FormDatum::StringData(ref s) => BlobOrUSVString::USVString(USVString(s.clone())), FormDatum::BlobData(ref b) => BlobOrUSVString::Blob(Root::from_ref(&*b)), @@ -96,7 +96,7 @@ impl FormDataMethods for FormData { // https://xhr.spec.whatwg.org/#dom-formdata-getall fn GetAll(&self, name: USVString) -> Vec { self.data.borrow() - .get(&Atom::from(&*name.0)) + .get(&Atom::from(name.0)) .map_or(vec![], |data| data.iter().map(|item| match *item { FormDatum::StringData(ref s) => BlobOrUSVString::USVString(USVString(s.clone())), @@ -107,7 +107,7 @@ impl FormDataMethods for FormData { // https://xhr.spec.whatwg.org/#dom-formdata-has fn Has(&self, name: USVString) -> bool { - self.data.borrow().contains_key(&Atom::from(&*name.0)) + self.data.borrow().contains_key(&Atom::from(name.0)) } #[allow(unrooted_must_root)] @@ -117,7 +117,7 @@ impl FormDataMethods for FormData { BlobOrUSVString::USVString(s) => FormDatum::StringData(s.0), BlobOrUSVString::Blob(b) => FormDatum::BlobData(JS::from_rooted(&b)) }; - self.data.borrow_mut().insert(Atom::from(&*name.0), vec!(val)); + self.data.borrow_mut().insert(Atom::from(name.0), vec!(val)); } } diff --git a/components/script/dom/htmlcollection.rs b/components/script/dom/htmlcollection.rs index b2c691fb762..d36fb177e7b 100644 --- a/components/script/dom/htmlcollection.rs +++ b/components/script/dom/htmlcollection.rs @@ -115,9 +115,9 @@ impl HTMLCollection { pub fn by_tag_name(window: &Window, root: &Node, mut tag: DOMString) -> Root { - let tag_atom = Atom::from(&*tag); // FIXME(ajeffrey): Convert directly from DOMString to Atom + let tag_atom = Atom::from(&*tag); tag.make_ascii_lowercase(); - let ascii_lower_tag = Atom::from(&*tag); // FIXME(ajeffrey): Convert directly from DOMString to Atom + let ascii_lower_tag = Atom::from(tag); // FIXME(ajeffrey): don't clone atom if it was already lowercased. HTMLCollection::by_atomic_tag_name(window, root, tag_atom, ascii_lower_tag) } @@ -148,7 +148,7 @@ impl HTMLCollection { pub fn by_tag_name_ns(window: &Window, root: &Node, tag: DOMString, maybe_ns: Option) -> Root { - let local = Atom::from(&*tag); // FIXME(ajeffrey): Convert directly from DOMString to Atom + let local = Atom::from(tag); let ns = namespace_from_domstring(maybe_ns); let qname = QualName::new(ns, local); HTMLCollection::by_qual_tag_name(window, root, qname) diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs index 9ed0f1f6494..70e370a8c8a 100644 --- a/components/script/dom/htmlelement.rs +++ b/components/script/dom/htmlelement.rs @@ -340,7 +340,7 @@ impl HTMLElement { pub fn get_custom_attr(&self, local_name: DOMString) -> Option { // FIXME(ajeffrey): Convert directly from DOMString to Atom - let local_name = Atom::from(&*to_snake_case(local_name)); + let local_name = Atom::from(to_snake_case(local_name)); self.upcast::().get_attribute(&ns!(), &local_name).map(|attr| { DOMString::from(&**attr.value()) // FIXME(ajeffrey): Convert directly from AttrValue to DOMString }) @@ -348,7 +348,7 @@ impl HTMLElement { pub fn delete_custom_attr(&self, local_name: DOMString) { // FIXME(ajeffrey): Convert directly from DOMString to Atom - let local_name = Atom::from(&*to_snake_case(local_name)); + let local_name = Atom::from(to_snake_case(local_name)); self.upcast::().remove_attribute(&ns!(), &local_name); } diff --git a/components/script/dom/messageevent.rs b/components/script/dom/messageevent.rs index f68f37a872a..3f4571ff528 100644 --- a/components/script/dom/messageevent.rs +++ b/components/script/dom/messageevent.rs @@ -67,7 +67,7 @@ impl MessageEvent { // Dictionaries need to be rooted // https://github.com/servo/servo/issues/6381 let data = RootedValue::new(global.get_cx(), init.data); - let ev = MessageEvent::new(global, Atom::from(&*type_), init.parent.bubbles, init.parent.cancelable, + let ev = MessageEvent::new(global, Atom::from(type_), init.parent.bubbles, init.parent.cancelable, data.handle(), init.origin.clone(), init.lastEventId.clone()); Ok(ev) diff --git a/components/script/dom/namednodemap.rs b/components/script/dom/namednodemap.rs index ca564f04e00..94e21b65bf6 100644 --- a/components/script/dom/namednodemap.rs +++ b/components/script/dom/namednodemap.rs @@ -56,7 +56,7 @@ impl NamedNodeMapMethods for NamedNodeMap { fn GetNamedItemNS(&self, namespace: Option, local_name: DOMString) -> Option> { let ns = namespace_from_domstring(namespace); - self.owner.get_attribute(&ns, &Atom::from(&*local_name)) + self.owner.get_attribute(&ns, &Atom::from(local_name)) } // https://dom.spec.whatwg.org/#dom-namednodemap-setnameditem @@ -79,7 +79,7 @@ impl NamedNodeMapMethods for NamedNodeMap { fn RemoveNamedItemNS(&self, namespace: Option, local_name: DOMString) -> Fallible> { let ns = namespace_from_domstring(namespace); - self.owner.remove_attribute(&ns, &Atom::from(&*local_name)) + self.owner.remove_attribute(&ns, &Atom::from(local_name)) .ok_or(Error::NotFound) } diff --git a/components/script/dom/progressevent.rs b/components/script/dom/progressevent.rs index 985cc289d61..e7b0b1510ef 100644 --- a/components/script/dom/progressevent.rs +++ b/components/script/dom/progressevent.rs @@ -50,7 +50,7 @@ impl ProgressEvent { let bubbles = if init.parent.bubbles { EventBubbles::Bubbles } else { EventBubbles::DoesNotBubble }; let cancelable = if init.parent.cancelable { EventCancelable::Cancelable } else { EventCancelable::NotCancelable }; - let ev = ProgressEvent::new(global, Atom::from(&*type_), bubbles, cancelable, + let ev = ProgressEvent::new(global, Atom::from(type_), bubbles, cancelable, init.lengthComputable, init.loaded, init.total); Ok(ev) } diff --git a/components/script/dom/storageevent.rs b/components/script/dom/storageevent.rs index 215054a6e38..4c7200f5fc1 100644 --- a/components/script/dom/storageevent.rs +++ b/components/script/dom/storageevent.rs @@ -76,7 +76,7 @@ impl StorageEvent { } else { EventCancelable::NotCancelable }; - let event = StorageEvent::new(global, Atom::from(&*type_), + let event = StorageEvent::new(global, Atom::from(type_), bubbles, cancelable, key, oldValue, newValue, url, storageArea); diff --git a/components/script/dom/uievent.rs b/components/script/dom/uievent.rs index 1c4ba4b5fb8..bc340638255 100644 --- a/components/script/dom/uievent.rs +++ b/components/script/dom/uievent.rs @@ -92,7 +92,7 @@ impl UIEventMethods for UIEvent { return; } - event.init_event(Atom::from(&*type_), can_bubble, cancelable); + event.init_event(Atom::from(type_), can_bubble, cancelable); self.view.set(view); self.detail.set(detail); } diff --git a/components/script/dom/webglcontextevent.rs b/components/script/dom/webglcontextevent.rs index 71ab79a34db..195848273fe 100644 --- a/components/script/dom/webglcontextevent.rs +++ b/components/script/dom/webglcontextevent.rs @@ -79,7 +79,7 @@ impl WebGLContextEvent { EventCancelable::NotCancelable }; - Ok(WebGLContextEvent::new(global, Atom::from(&*type_), + Ok(WebGLContextEvent::new(global, Atom::from(type_), bubbles, cancelable, status_message)) diff --git a/components/servo/Cargo.lock b/components/servo/Cargo.lock index 30a52063129..64acb9dc4d8 100644 --- a/components/servo/Cargo.lock +++ b/components/servo/Cargo.lock @@ -683,7 +683,7 @@ dependencies = [ "servo-skia 0.20130412.6 (registry+https://github.com/rust-lang/crates.io-index)", "simd 0.1.0 (git+https://github.com/huonw/simd)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "style 0.0.1", "style_traits 0.0.1", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", @@ -852,7 +852,7 @@ dependencies = [ "phf 0.7.12 (registry+https://github.com/rust-lang/crates.io-index)", "phf_codegen 0.7.12 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "tendril 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1025,7 +1025,7 @@ dependencies = [ "serde_json 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "style 0.0.1", "style_traits 0.0.1", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1631,7 +1631,7 @@ dependencies = [ "selectors 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.6.15 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "style 0.0.1", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", "unicase 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1690,7 +1690,7 @@ dependencies = [ "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "quickersort 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1863,7 +1863,7 @@ dependencies = [ [[package]] name = "string_cache" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "debug_unreachable 0.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1897,7 +1897,7 @@ dependencies = [ "serde 0.6.15 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "style_traits 0.0.1", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", "url 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1914,7 +1914,7 @@ dependencies = [ "msg 0.0.1", "plugins 0.0.1", "selectors 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "style 0.0.1", "style_traits 0.0.1", "url 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2102,7 +2102,7 @@ dependencies = [ "serde 0.6.15 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "url 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", "uuid 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -2321,7 +2321,7 @@ dependencies = [ "phf 0.7.12 (registry+https://github.com/rust-lang/crates.io-index)", "phf_codegen 0.7.12 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "tendril 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/components/style/Cargo.toml b/components/style/Cargo.toml index 9e681f94b03..50887d09760 100644 --- a/components/style/Cargo.toml +++ b/components/style/Cargo.toml @@ -36,7 +36,7 @@ selectors = {version = "0.5", features = ["heap_size", "unstable"]} serde = "0.6" serde_macros = "0.6" smallvec = "0.1" -string_cache = {version = "0.2.9", features = ["heap_size"]} +string_cache = {version = "0.2.10", features = ["heap_size"]} time = "0.1" url = {version = "0.5.5", features = ["heap_size"]} diff --git a/components/style/attr.rs b/components/style/attr.rs index 7c85975ee83..76918f0c410 100644 --- a/components/style/attr.rs +++ b/components/style/attr.rs @@ -129,8 +129,7 @@ impl AttrValue { } pub fn from_atomic(string: DOMString) -> AttrValue { - // FIXME(ajeffrey): convert directly from DOMString to Atom - let value = Atom::from(&*string); + let value = Atom::from(string); AttrValue::Atom(value) } diff --git a/components/style/properties.mako.rs b/components/style/properties.mako.rs index 0b1665cc40b..890661f3d0d 100644 --- a/components/style/properties.mako.rs +++ b/components/style/properties.mako.rs @@ -1793,7 +1793,7 @@ pub mod longhands { value.push_str(" "); value.push_str(&ident); } - Ok(FontFamily::FamilyName(Atom::from(&*value))) + Ok(FontFamily::FamilyName(Atom::from(value))) } diff --git a/components/style/stylesheets.rs b/components/style/stylesheets.rs index 1e5d641ff02..44efaa6f3f2 100644 --- a/components/style/stylesheets.rs +++ b/components/style/stylesheets.rs @@ -396,7 +396,7 @@ impl<'a, Impl: SelectorImpl> AtRuleParser for TopLevelRuleParser<'a, Impl> { self.state.set(State::Namespaces); let prefix = input.try(|input| input.expect_ident()).ok().map(|p| p.into_owned()); - let url = Namespace(Atom::from(&*try!(input.expect_url_or_string()))); + let url = Namespace(Atom::from(try!(input.expect_url_or_string()))); return Ok(AtRuleType::WithoutBlock(CSSRule::Namespace(prefix, url))) } else { return Err(()) // "@namespace must be before any rule but @charset and @import" diff --git a/components/util/Cargo.toml b/components/util/Cargo.toml index 5388654a8b0..555509d23ef 100644 --- a/components/util/Cargo.toml +++ b/components/util/Cargo.toml @@ -46,7 +46,7 @@ selectors = {version = "0.5", features = ["heap_size"]} serde = "0.6" serde_macros = "0.6" smallvec = "0.1" -string_cache = {version = "0.2.9", features = ["heap_size"]} +string_cache = {version = "0.2.10", features = ["heap_size"]} url = {version = "0.5.5", features = ["heap_size", "serde_serialization"]} uuid = "0.1.17" diff --git a/components/util/str.rs b/components/util/str.rs index 2ffde43fedf..9d0869ccced 100644 --- a/components/util/str.rs +++ b/components/util/str.rs @@ -11,6 +11,7 @@ use std::fmt; use std::iter::{Filter, Peekable}; use std::ops::{Deref, DerefMut}; use std::str::{Bytes, CharIndices, FromStr, Split, from_utf8}; +use string_cache::Atom; #[derive(Clone, Debug, Deserialize, Eq, Hash, HeapSizeOf, Ord, PartialEq, PartialOrd, Serialize)] pub struct DOMString(String); @@ -96,6 +97,12 @@ impl<'a> From<&'a str> for DOMString { } } +impl From for Atom { + fn from(contents: DOMString) -> Atom { + Atom::from(contents.0) + } +} + impl From for String { fn from(contents: DOMString) -> String { contents.0 diff --git a/ports/cef/Cargo.lock b/ports/cef/Cargo.lock index 78f6bbed529..13105ecccd3 100644 --- a/ports/cef/Cargo.lock +++ b/ports/cef/Cargo.lock @@ -622,7 +622,7 @@ dependencies = [ "servo-skia 0.20130412.6 (registry+https://github.com/rust-lang/crates.io-index)", "simd 0.1.0 (git+https://github.com/huonw/simd)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "style 0.0.1", "style_traits 0.0.1", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", @@ -782,7 +782,7 @@ dependencies = [ "phf 0.7.12 (registry+https://github.com/rust-lang/crates.io-index)", "phf_codegen 0.7.12 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "tendril 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -955,7 +955,7 @@ dependencies = [ "serde_json 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "style 0.0.1", "style_traits 0.0.1", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1517,7 +1517,7 @@ dependencies = [ "selectors 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.6.15 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "style 0.0.1", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", "unicase 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1567,7 +1567,7 @@ dependencies = [ "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "quickersort 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1777,7 +1777,7 @@ dependencies = [ [[package]] name = "string_cache" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "debug_unreachable 0.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1811,7 +1811,7 @@ dependencies = [ "serde 0.6.15 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "style_traits 0.0.1", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", "url 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1999,7 +1999,7 @@ dependencies = [ "serde 0.6.15 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "url 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", "uuid 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -2207,7 +2207,7 @@ dependencies = [ "phf 0.7.12 (registry+https://github.com/rust-lang/crates.io-index)", "phf_codegen 0.7.12 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "tendril 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/ports/geckolib/Cargo.lock b/ports/geckolib/Cargo.lock index 86c922b4ae6..ccb5729e639 100644 --- a/ports/geckolib/Cargo.lock +++ b/ports/geckolib/Cargo.lock @@ -15,7 +15,7 @@ dependencies = [ "plugins 0.0.1", "selectors 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "style 0.0.1", "url 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", "util 0.0.1", @@ -371,7 +371,7 @@ dependencies = [ "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "quickersort 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -407,7 +407,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "string_cache" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "debug_unreachable 0.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -441,7 +441,7 @@ dependencies = [ "serde 0.6.15 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "style_traits 0.0.1", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", "url 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", @@ -550,7 +550,7 @@ dependencies = [ "serde 0.6.15 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "url 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", "uuid 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/ports/geckolib/Cargo.toml b/ports/geckolib/Cargo.toml index 4e9cf774ea2..a9a853b4d41 100644 --- a/ports/geckolib/Cargo.toml +++ b/ports/geckolib/Cargo.toml @@ -21,7 +21,7 @@ log = "0.3" num_cpus = "0.2.2" selectors = {version = "0.5", features = ["heap_size"]} smallvec = "0.1" -string_cache = {version = "0.2.9", features = ["heap_size"]} +string_cache = {version = "0.2.10", features = ["heap_size"]} url = {version = "0.5.5", features = ["heap_size"]} [dependencies.plugins] diff --git a/ports/geckolib/wrapper.rs b/ports/geckolib/wrapper.rs index 00f54f175b6..a05e08d5227 100644 --- a/ports/geckolib/wrapper.rs +++ b/ports/geckolib/wrapper.rs @@ -406,7 +406,7 @@ impl<'le> ::selectors::Element for GeckoElement<'le> { unsafe { let mut length: u32 = 0; let p = Gecko_LocalName(self.element, &mut length); - Atom::from(&*String::from_utf16(slice::from_raw_parts(p, length as usize)).unwrap()) + Atom::from(String::from_utf16(slice::from_raw_parts(p, length as usize)).unwrap()) } */ } @@ -417,7 +417,7 @@ impl<'le> ::selectors::Element for GeckoElement<'le> { unsafe { let mut length: u32 = 0; let p = Gecko_Namespace(self.element, &mut length); - Namespace(Atom::from(&*String::from_utf16(slice::from_raw_parts(p, length as usize)).unwrap())) + Namespace(Atom::from(String::from_utf16(slice::from_raw_parts(p, length as usize)).unwrap())) } */ } diff --git a/ports/gonk/Cargo.lock b/ports/gonk/Cargo.lock index 6a2655344db..e6bd009f27d 100644 --- a/ports/gonk/Cargo.lock +++ b/ports/gonk/Cargo.lock @@ -624,7 +624,7 @@ dependencies = [ "servo-skia 0.20130412.6 (registry+https://github.com/rust-lang/crates.io-index)", "simd 0.1.0 (git+https://github.com/huonw/simd)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "style 0.0.1", "style_traits 0.0.1", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", @@ -763,7 +763,7 @@ dependencies = [ "phf 0.7.12 (registry+https://github.com/rust-lang/crates.io-index)", "phf_codegen 0.7.12 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "tendril 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -936,7 +936,7 @@ dependencies = [ "serde_json 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "style 0.0.1", "style_traits 0.0.1", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1498,7 +1498,7 @@ dependencies = [ "selectors 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.6.15 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "style 0.0.1", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", "unicase 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1548,7 +1548,7 @@ dependencies = [ "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "quickersort 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1756,7 +1756,7 @@ dependencies = [ [[package]] name = "string_cache" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "debug_unreachable 0.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1790,7 +1790,7 @@ dependencies = [ "serde 0.6.15 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "style_traits 0.0.1", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", "url 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1978,7 +1978,7 @@ dependencies = [ "serde 0.6.15 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "url 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", "uuid 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -2155,7 +2155,7 @@ dependencies = [ "phf 0.7.12 (registry+https://github.com/rust-lang/crates.io-index)", "phf_codegen 0.7.12 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", - "string_cache 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "string_cache 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "tendril 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/tests/unit/style/Cargo.toml b/tests/unit/style/Cargo.toml index 43a2fafaa55..9e5cdc5a9d2 100644 --- a/tests/unit/style/Cargo.toml +++ b/tests/unit/style/Cargo.toml @@ -28,5 +28,5 @@ app_units = {version = "0.2.1", features = ["plugins"]} cssparser = {version = "0.5.3", features = ["heap_size"]} euclid = {version = "0.6.2", features = ["plugins"]} selectors = {version = "0.5", features = ["heap_size"]} -string_cache = {version = "0.2.9", features = ["heap_size"]} +string_cache = {version = "0.2.10", features = ["heap_size"]} url = {version = "0.5.5", features = ["heap_size"]}