Auto merge of #8479 - frewsxcv:domstring-default, r=Ms2ger

Implement Default trait for DOMString

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8479)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-11-13 04:51:32 +05:30
commit 1720595a85
3 changed files with 11 additions and 5 deletions

View file

@ -32,6 +32,12 @@ impl DOMString {
}
}
impl Default for DOMString {
fn default() -> Self {
DOMString(String::new())
}
}
impl Deref for DOMString {
type Target = str;