Comply with clippy

This commit is contained in:
Chadtech 2021-05-16 22:33:23 -04:00
parent 1f2110b99e
commit 6df323ce12

View File

@ -411,11 +411,11 @@ fn type_annotation_to_html(indent_level: usize, buf: &mut String, type_ann: &Typ
} }
fn insert_doc_links(markdown: String) -> String { fn insert_doc_links(markdown: String) -> String {
insert_doc_links_help(markdown.clone()) insert_doc_links_help(markdown)
} }
fn insert_doc_links_help(markdown: String) -> String { fn insert_doc_links_help(markdown: String) -> String {
let buf = &markdown.clone(); let buf = &markdown;
let mut result = String::new(); let mut result = String::new();
let mut chomping_from: Option<usize> = None; let mut chomping_from: Option<usize> = None;
@ -461,7 +461,7 @@ fn make_doc_link(doc_item: String) -> String {
let mut label = String::new(); let mut label = String::new();
let mut link = String::new(); let mut link = String::new();
let mut parts = doc_item.split(".").into_iter().peekable(); let mut parts = doc_item.split('.').into_iter().peekable();
while let Some(part) = parts.next() { while let Some(part) = parts.next() {
label.push_str(part); label.push_str(part);