diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-04-23 11:28:31 -0700 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-04-23 11:28:31 -0700 |
commit | 84ab7e9fe8f4a6528995eff3eb6e814cb724c364 (patch) | |
tree | c147ef89425697fd545a7a86518e2f37abd102a5 /components/script/dom/htmlimageelement.rs | |
parent | 305c283602882850be9d39c43b980d0fc0f93a3c (diff) | |
parent | e66260513834e4ffafcd1539649432068c0ecc70 (diff) | |
download | servo-84ab7e9fe8f4a6528995eff3eb6e814cb724c364.tar.gz servo-84ab7e9fe8f4a6528995eff3eb6e814cb724c364.zip |
Auto merge of #9840 - servo:url-1.0, r=asajeffrey
Update to rust-url 1.0
**Do not merge yet:** rust-url 1.0 is not published yet and may still get breaking changes. The goal of this PR for now is to demonstrate API usage.
Depends on:
* <s>https://github.com/servo/rust-url/pull/176</s>
* <s>https://github.com/alexcrichton/cookie-rs/pull/42</s>
* <s>https://github.com/hyperium/hyper/pull/740</s>
* https://github.com/cyderize/rust-websocket/pull/70
* https://github.com/jgraham/webdriver-rust/pull/28
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9840)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmlimageelement.rs')
-rw-r--r-- | components/script/dom/htmlimageelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs index c0a9e960385..a02546afddc 100644 --- a/components/script/dom/htmlimageelement.rs +++ b/components/script/dom/htmlimageelement.rs @@ -316,7 +316,7 @@ impl HTMLImageElementMethods for HTMLImageElement { fn CurrentSrc(&self) -> DOMString { let ref url = self.current_request.borrow().url; match *url { - Some(ref url) => DOMString::from(url.serialize()), + Some(ref url) => DOMString::from(url.as_str()), None => DOMString::from(""), } } |