aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2014-05-04 01:01:21 -0400
committerbors-servo <release+servo@mozilla.com>2014-05-04 01:01:21 -0400
commit660f7a016ee75a418afda9e92d45b79eff6ba540 (patch)
tree64dcd6f6eace86d63688100c37de00ea238262de /src/components/script/dom/testbinding.rs
parent731e66ff132e41cdc49bc5324c0e15be19c46ec2 (diff)
parent243814022e06c35c9bcdd99ccd281cb6ed180db0 (diff)
downloadservo-660f7a016ee75a418afda9e92d45b79eff6ba540.tar.gz
servo-660f7a016ee75a418afda9e92d45b79eff6ba540.zip
auto merge of #2311 : Ms2ger/servo/empty-owned, r=jdm
Diffstat (limited to 'src/components/script/dom/testbinding.rs')
-rw-r--r--src/components/script/dom/testbinding.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/testbinding.rs b/src/components/script/dom/testbinding.rs
index a860d1c3d0f..f003c1c6c34 100644
--- a/src/components/script/dom/testbinding.rs
+++ b/src/components/script/dom/testbinding.rs
@@ -225,7 +225,7 @@ impl<'a> TestBindingMethods for JSRef<'a, TestBinding> {
fn SetFloatAttribute(&self, _: f32) {}
fn DoubleAttribute(&self) -> f64 { 0. }
fn SetDoubleAttribute(&self, _: f64) {}
- fn StringAttribute(&self) -> DOMString { ~"" }
+ fn StringAttribute(&self) -> DOMString { "".to_owned() }
fn SetStringAttribute(&self, _: DOMString) {}
fn ByteStringAttribute(&self) -> ByteString { ByteString::new(vec!()) }
fn SetByteStringAttribute(&self, _: ByteString) {}
@@ -263,7 +263,7 @@ impl<'a> TestBindingMethods for JSRef<'a, TestBinding> {
fn SetDoubleAttributeNullable(&self, _: Option<f64>) {}
fn GetByteStringAttributeNullable(&self) -> Option<ByteString> { Some(ByteString::new(vec!())) }
fn SetByteStringAttributeNullable(&self, _: Option<ByteString>) {}
- fn GetStringAttributeNullable(&self) -> Option<DOMString> { Some(~"") }
+ fn GetStringAttributeNullable(&self) -> Option<DOMString> { Some("".to_owned()) }
fn SetStringAttributeNullable(&self, _: Option<DOMString>) {}
fn GetEnumAttributeNullable(&self) -> Option<TestEnum> { Some(_empty) }
fn GetInterfaceAttributeNullable(&self) -> Option<Temporary<Blob>> {