aboutsummaryrefslogtreecommitdiff
path: root/src/web/web_server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/web_server.rs')
-rw-r--r--src/web/web_server.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/web/web_server.rs b/src/web/web_server.rs
index 246c045f..aab7e8de 100644
--- a/src/web/web_server.rs
+++ b/src/web/web_server.rs
@@ -176,9 +176,7 @@ fn path_to_key<'a>(path: &'a str, index: &str) -> Result<Cow<'a, str>, Error> {
}
match path_utf8.chars().last() {
- None => Err(Error::BadRequest(format!(
- "Path must have at least a character"
- ))),
+ None => unreachable!(),
Some('/') => {
let mut key = String::with_capacity(path_utf8.len() + index.len());
key.push_str(&path_utf8[1..]);