From c7f55c146a641540c293967e53ab6ee55eac2516 Mon Sep 17 00:00:00 2001
From: Matthew Esposito <matt@matthew.science>
Date: Mon, 3 Feb 2025 00:53:13 -0500
Subject: [PATCH] fix(clippy): minor clippy changes

---
 src/utils.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/utils.rs b/src/utils.rs
index 21461a7..23db3d0 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -1004,7 +1004,7 @@ static REGEX_BULLET_CONSECUTIVE_LINES: Lazy<Regex> = Lazy::new(|| Regex::new(r"<
 pub fn render_bullet_lists(input_text: &str) -> String {
 	// ref: https://stackoverflow.com/a/4902622
 	// First enclose each bullet with <ul> <li> tags
-	let text1 = REGEX_BULLET.replace_all(&input_text, "<ul><li>$1</li></ul>").to_string();
+	let text1 = REGEX_BULLET.replace_all(input_text, "<ul><li>$1</li></ul>").to_string();
 	// Then remove any consecutive </ul> <ul> tags
 	REGEX_BULLET_CONSECUTIVE_LINES.replace_all(&text1, "").to_string()
 }
@@ -1344,7 +1344,7 @@ pub fn url_path_basename(path: &str) -> String {
 		let mut url = url_result.unwrap();
 		url.path_segments_mut().unwrap().pop_if_empty();
 
-		url.path_segments().unwrap().last().unwrap().to_string()
+		url.path_segments().unwrap().next_back().unwrap().to_string()
 	}
 }