From 72801bf80d1819ec146033f1dd021177923efcb7 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Fri, 03 Jan 2025 20:48:24 +0700 Subject: [PATCH] Use trim_mathces instead of trim_(start|end)_matches --- 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; -- rgit 0.1.4