Support website publishing #7

Merged
lx merged 61 commits from feature/website into master 2021-01-15 16:49:51 +00:00
Showing only changes of commit f8a40e8c4f - Show all commits

View file

@ -176,9 +176,7 @@ fn path_to_key<'a>(path: &'a str, index: &str) -> Result<Cow<'a, str>, Error> {
} }
match path_utf8.chars().last() { match path_utf8.chars().last() {
None => Err(Error::BadRequest(format!( None => unreachable!(),
"Path must have at least a character"
))),
Some('/') => { Some('/') => {
let mut key = String::with_capacity(path_utf8.len() + index.len()); let mut key = String::with_capacity(path_utf8.len() + index.len());
key.push_str(&path_utf8[1..]); key.push_str(&path_utf8[1..]);