aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2020-10-09 14:16:00 -0700
committerRichard Walters <rwalters@digitalstirling.com>2020-10-09 14:16:00 -0700
commit20997f6f72a62f74e6493292d111bd1ba48beb92 (patch)
tree168a091ae8e6b3c050110b63c054728c48de5927 /src
parentda1164d82cb7a35ff99e9c118eaec86635080ddf (diff)
Minor whitespace/comment cleanup
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f3b895a..6cbc682 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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)?;