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() {
quentin marked this conversation as resolved Outdated
Outdated
Review

this case is unreachable!() thanks to the previous if

this case is `unreachable!()` thanks to the previous if
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..]);