Skip to content

Commit

Permalink
clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Sep 29, 2021
1 parent bd615e2 commit 256619b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,11 @@ where
println!("{}", filepath.display());

for (lineno, href) in &bad_links {
print_href_error("error: bad link", &href, *lineno);
print_href_error("error: bad link", href, *lineno);
}

for (lineno, href) in &bad_anchors {
print_href_error("error: bad link", &href, *lineno);
print_href_error("error: bad link", href, *lineno);
}

if github_actions {
Expand Down Expand Up @@ -417,7 +417,7 @@ fn extract_html_links<C: LinkCollector<P::Paragraph>, P: ParagraphWalker>(
|(mut arena, mut xml_buf, mut collector, mut documents_count, mut file_count),
entry| {
let path = entry.path();
let document = Document::new(&base_path, &path);
let document = Document::new(base_path, &path);

collector.ingest(Link::Defines(DefinedLink {
href: document.href(),
Expand Down
2 changes: 1 addition & 1 deletion src/paragraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ where
let inner = self.inner.finish_paragraph()?;
Some(DebugParagraph {
inner,
contents: mem::replace(&mut self.contents, String::new()),
contents: mem::take(&mut self.contents),
})
}
}
Expand Down

0 comments on commit 256619b

Please sign in to comment.