aboutsummaryrefslogtreecommitdiffstats
path: root/components/url/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/url/lib.rs')
-rw-r--r--components/url/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/url/lib.rs b/components/url/lib.rs
index f9576cce161..89ff2c3f96b 100644
--- a/components/url/lib.rs
+++ b/components/url/lib.rs
@@ -176,7 +176,7 @@ impl ServoUrl {
// Strip `scheme://`, which is hardly useful for identifying websites
let mut st = self.as_str();
st = st.strip_prefix(self.scheme()).unwrap_or(st);
- st = st.strip_prefix(":").unwrap_or(st);
+ st = st.strip_prefix(':').unwrap_or(st);
st = st.trim_start_matches('/');
// Don't want to return an empty string