aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/attr.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2015-01-15 13:26:44 -0500
committerGlenn Watson <gw@intuitionlibrary.com>2015-01-28 10:16:49 +1000
commit95fc29fa0db21959df99d81cdbb9561226321d2f (patch)
treea48e171165ec155062ef13c550b2c0f72d127425 /components/script/dom/attr.rs
parentff8cbff81016c157373c1675f3eee69dd70ae544 (diff)
downloadservo-95fc29fa0db21959df99d81cdbb9561226321d2f.tar.gz
servo-95fc29fa0db21959df99d81cdbb9561226321d2f.zip
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
Diffstat (limited to 'components/script/dom/attr.rs')
-rw-r--r--components/script/dom/attr.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/attr.rs b/components/script/dom/attr.rs
index 789e5f925d6..e8a66199db7 100644
--- a/components/script/dom/attr.rs
+++ b/components/script/dom/attr.rs
@@ -29,7 +29,7 @@ pub enum AttrSettingType {
ReplacedAttr,
}
-#[deriving(PartialEq, Clone)]
+#[derive(PartialEq, Clone)]
#[jstraceable]
pub enum AttrValue {
String(DOMString),
@@ -58,7 +58,8 @@ impl AttrValue {
}
pub fn from_u32(string: DOMString, default: u32) -> AttrValue {
- let result: u32 = from_str(string.as_slice()).unwrap_or(default);
+ // XXX Is parse() correct?
+ let result: u32 = string.parse().unwrap_or(default);
AttrValue::UInt(string, result)
}