Skip to content
This repository was archived by the owner on Mar 25, 2023. It is now read-only.

Commit 4f1622f

Browse files
Arpita-Jaiswalamitu
authored andcommitted
Clippy fixes
1 parent 4f1d292 commit 4f1622f

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/library/get_version_data.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ pub fn processor(
4444
};
4545

4646
let url = match doc_id.as_str().rsplit_once('.') {
47-
Some(("index", "ftd")) => {
48-
// Index.ftd found. Return index.html
49-
format!("{base_url}")
50-
}
47+
Some(("index", "ftd")) => base_url,
5148
Some((file_path, "ftd")) | Some((file_path, "md")) => {
5249
format!("{base_url}{file_path}/")
5350
}
@@ -77,10 +74,10 @@ pub fn processor(
7774
}
7875
version_toc.push(fpm::library::toc::TocItem {
7976
id: None,
80-
title: Some(format!("{}", key.original)),
77+
title: Some(key.original.to_string()),
8178
url: Some(format!("{}{}", key.original, url)),
8279
number: vec![],
83-
is_heading: if version.eq(key) { true } else { false },
80+
is_heading: version.eq(key),
8481
is_disabled: false,
8582
img_src: None,
8683
font_icon: None,

0 commit comments

Comments
 (0)