mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
clippy: fix warnings in various modules in components (#31568)
* clippy: fix warnings in various modules in components * fix: unit tests * fix: build on android * fix: all samplers use new_boxed
This commit is contained in:
parent
19f1f2a8f4
commit
3a5ca785d3
24 changed files with 107 additions and 118 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue