diff options
author | Alex Auvolat <alex@adnab.me> | 2022-10-13 14:35:39 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-10-14 14:30:48 +0200 |
commit | 8d04ae7014991319e97d4280f0e9d7a70c89f10b (patch) | |
tree | caef421dd2ac7d047045d04f5cb4893138759adf /src/web/web_server.rs | |
parent | a096ced35562bd0a8877a1ee2f755be1edafe343 (diff) | |
download | garage-8d04ae7014991319e97d4280f0e9d7a70c89f10b.tar.gz garage-8d04ae7014991319e97d4280f0e9d7a70c89f10b.zip |
cargo2nix unstable (patched), rust 1.63.0, nixpkgs 22.05 (32-bit builds are broken)
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()), }, } } |