aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-05-03 22:17:45 +0200
committerMs2ger <ms2ger@gmail.com>2014-05-03 22:17:45 +0200
commit243814022e06c35c9bcdd99ccd281cb6ed180db0 (patch)
tree64dcd6f6eace86d63688100c37de00ea238262de /src/components/script/dom/testbinding.rs
parent731e66ff132e41cdc49bc5324c0e15be19c46ec2 (diff)
downloadservo-243814022e06c35c9bcdd99ccd281cb6ed180db0.tar.gz
servo-243814022e06c35c9bcdd99ccd281cb6ed180db0.zip
Replace all ~"" with "".to_owned().
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>> {