diff options
author | Alex <alex@adnab.me> | 2022-10-18 14:16:52 +0000 |
---|---|---|
committer | Alex <alex@adnab.me> | 2022-10-18 14:16:52 +0000 |
commit | 7bc9fd34b250384d1b80ed28dc6c9e6abcda69ae (patch) | |
tree | 2aa704a85ec0fe7ef8e28daaa1c71fd449be1453 /src/web/web_server.rs | |
parent | 4582a8f34aba85ff7b0a56935f27cc166819dec1 (diff) | |
parent | a54a63c491556b746dab02a0766034af70c61457 (diff) | |
download | garage-7bc9fd34b250384d1b80ed28dc6c9e6abcda69ae.tar.gz garage-7bc9fd34b250384d1b80ed28dc6c9e6abcda69ae.zip |
Merge pull request 'upgrade Nix toolchain' (#400) from upgrade-toolchain into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/400
Diffstat (limited to 'src/web/web_server.rs')
-rw-r--r-- | src/web/web_server.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/web_server.rs b/src/web/web_server.rs index c2322073..1541c297 100644 --- a/src/web/web_server.rs +++ b/src/web/web_server.rs @@ -318,7 +318,7 @@ fn path_to_key<'a>(path: &'a str, index: &str) -> Result<Cow<'a, str>, Error> { } Some(_) => match path_utf8 { Cow::Borrowed(pu8) => Ok((&pu8[1..]).into()), - Cow::Owned(pu8) => Ok((&pu8[1..]).to_string().into()), + Cow::Owned(pu8) => Ok(pu8[1..].to_string().into()), }, } } |