Implement range index with the Position enum on ServoUrl

This commit is contained in:
Pu Xingyu 2016-11-18 17:43:58 +08:00
parent 22aebdf5d4
commit 0818b44459
6 changed files with 35 additions and 6 deletions

View file

@ -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 {