🏡 index : ~doyle/rgit.git

author Jordan Doyle <jordan@doyle.la> 2025-01-03 20:48:24.0 +07:00:00
committer Jordan Doyle <jordan@doyle.la> 2025-01-03 20:48:24.0 +07:00:00
commit
72801bf80d1819ec146033f1dd021177923efcb7 [patch]
tree
fd8042e54d6da8979f430bfe2f1b9a8d7791a607
parent
96cb9706f58c1ceeb67dc1c7fbe193449546b126
download
72801bf80d1819ec146033f1dd021177923efcb7.tar.gz

Use trim_mathces instead of trim_(start|end)_matches



Diff

 src/methods/repo/mod.rs | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/methods/repo/mod.rs b/src/methods/repo/mod.rs
index 72ece11..821836d 100644
--- a/src/methods/repo/mod.rs
+++ a/src/methods/repo/mod.rs
@@ -61,11 +61,7 @@
        };
    }

    let uri = request
        .uri()
        .path()
        .trim_start_matches('/')
        .trim_end_matches('/');
    let uri = request.uri().path().trim_matches('/');
    let mut uri_parts = memchr::memchr_iter(b'/', uri.as_bytes());

    let original_uri = uri;