Skip to content
Snippets Groups Projects
Commit 8994e7d9 authored by Ning's avatar Ning
Browse files

Fix clippy

parent de9d0903
No related branches found
No related tags found
No related merge requests found
...@@ -511,7 +511,7 @@ impl MainHandler { ...@@ -511,7 +511,7 @@ impl MainHandler {
let breadcrumb = if !path_prefix.is_empty() { let breadcrumb = if !path_prefix.is_empty() {
let mut breadcrumb = path_prefix.to_owned(); let mut breadcrumb = path_prefix.to_owned();
let mut bread_links: Vec<String> = Vec::new(); let mut bread_links: Vec<String> = Vec::new();
bread_links.push(breadcrumb.pop().unwrap().to_owned()); bread_links.push(breadcrumb.pop().unwrap());
while !breadcrumb.is_empty() { while !breadcrumb.is_empty() {
bread_links.push(format!( bread_links.push(format!(
r#"<a href="/{link}/"><strong>{label}</strong></a>"#, r#"<a href="/{link}/"><strong>{label}</strong></a>"#,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment