diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2020-10-09 14:16:00 -0700 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2020-10-09 14:16:00 -0700 |
commit | 20997f6f72a62f74e6493292d111bd1ba48beb92 (patch) | |
tree | 168a091ae8e6b3c050110b63c054728c48de5927 /src | |
parent | da1164d82cb7a35ff99e9c118eaec86635080ddf (diff) |
Minor whitespace/comment cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -784,12 +784,9 @@ impl Uri { pub fn parse(uri_string: &str) -> Result<Uri, Error> { let (scheme, rest) = Self::parse_scheme(uri_string)?; - - let path_end = rest.find(&['?', '#'][..]) + let path_end = rest + .find(&['?', '#'][..]) .unwrap_or_else(|| rest.len()); -// let path_end = rest.find(|c| "?#".find(c).is_some()) -// .unwrap_or(rest.len()); - let authority_and_path_string = &rest[0..path_end]; let query_and_or_fragment = &rest[path_end..]; let (authority, path) = Self::split_authority_from_path_and_parse_them(authority_and_path_string)?; |