Skip to content

Commit c7f55c1

Browse files
committed
fix(clippy): minor clippy changes
1 parent ef2cc01 commit c7f55c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ static REGEX_BULLET_CONSECUTIVE_LINES: Lazy<Regex> = Lazy::new(|| Regex::new(r"<
10041004
pub fn render_bullet_lists(input_text: &str) -> String {
10051005
// ref: https://stackoverflow.com/a/4902622
10061006
// First enclose each bullet with <ul> <li> tags
1007-
let text1 = REGEX_BULLET.replace_all(&input_text, "<ul><li>$1</li></ul>").to_string();
1007+
let text1 = REGEX_BULLET.replace_all(input_text, "<ul><li>$1</li></ul>").to_string();
10081008
// Then remove any consecutive </ul> <ul> tags
10091009
REGEX_BULLET_CONSECUTIVE_LINES.replace_all(&text1, "").to_string()
10101010
}
@@ -1344,7 +1344,7 @@ pub fn url_path_basename(path: &str) -> String {
13441344
let mut url = url_result.unwrap();
13451345
url.path_segments_mut().unwrap().pop_if_empty();
13461346

1347-
url.path_segments().unwrap().last().unwrap().to_string()
1347+
url.path_segments().unwrap().next_back().unwrap().to_string()
13481348
}
13491349
}
13501350

0 commit comments

Comments
 (0)