aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6a36c9f..40d32e4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -633,14 +633,8 @@ impl Uri {
}
fn is_path_absolute(path: &[Vec<u8>]) -> bool {
- // TODO: Explore this alternate syntax to see if it works.
- //
- // match path {
- // [segment, ..] if segment.is_empty() => true,
- // _ => false
- // }
- match path.first() {
- Some(segment) if segment.is_empty() => true,
+ match path {
+ [segment, ..] if segment.is_empty() => true,
_ => false
}
}