aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/response.rs
diff options
context:
space:
mode:
authorPu Xingyu <pu.stshine@gmail.com>2016-11-18 17:43:58 +0800
committerPu Xingyu <pu.stshine@gmail.com>2016-11-18 17:46:36 +0800
commit0818b4445963871b5efbf2558c624523c59387d1 (patch)
tree78bcfc0851243ec524c8a96ea4cbbcdf0e5c57c2 /components/script/dom/response.rs
parent22aebdf5d41a3509cd6515ccf5edcdf33715a76d (diff)
downloadservo-0818b4445963871b5efbf2558c624523c59387d1.tar.gz
servo-0818b4445963871b5efbf2558c624523c59387d1.zip
Implement range index with the Position enum on ServoUrl
Diffstat (limited to 'components/script/dom/response.rs')
-rw-r--r--components/script/dom/response.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/response.rs b/components/script/dom/response.rs
index 484a1d0beee..949bfdb0d47 100644
--- a/components/script/dom/response.rs
+++ b/components/script/dom/response.rs
@@ -358,7 +358,7 @@ impl ResponseMethods for Response {
}
fn serialize_without_fragment(url: &ServoUrl) -> &str {
- &url.as_url().unwrap()[..Position::AfterQuery]
+ &url[..Position::AfterQuery]
}
impl Response {