Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed May 11, 2022
1 parent 1a3b783 commit 76b0b5f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/content/src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl<'a> SerializingPage<'a> {
.map(|p| Box::new(Self::new(&lib.pages[p], Some(lib), false)));
}

backlinks = find_backlinks(&page.file.relative, &lib);
backlinks = find_backlinks(&page.file.relative, lib);
}

Self {
Expand Down Expand Up @@ -192,7 +192,7 @@ impl<'a> SerializingSection<'a> {
}
}

backlinks = find_backlinks(&section.file.relative, &lib);
backlinks = find_backlinks(&section.file.relative, lib);
}
}

Expand Down
4 changes: 2 additions & 2 deletions components/site/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ impl Site {
);
match self.config.link_checker.internal_level {
config::LinkCheckerLevel::Warn => console::warn(&msg),
config::LinkCheckerLevel::Error => return Err(anyhow!(msg.clone())),
config::LinkCheckerLevel::Error => return Err(anyhow!(msg)),
}
}

Expand All @@ -331,7 +331,7 @@ impl Site {
);
match self.config.link_checker.external_level {
config::LinkCheckerLevel::Warn => console::warn(&msg),
config::LinkCheckerLevel::Error => return Err(anyhow!(msg.clone())),
config::LinkCheckerLevel::Error => return Err(anyhow!(msg)),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/site/src/link_checking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub fn check_external_links(site: &Site) -> Vec<String> {
// the ones that have invalid URLs
for (file_path, links) in external_links {
for link in links {
if should_skip_by_prefix(&link, &site.config.link_checker.skip_prefixes) {
if should_skip_by_prefix(link, &site.config.link_checker.skip_prefixes) {
skipped_link_count += 1;
} else {
match get_link_domain(link) {
Expand Down

0 comments on commit 76b0b5f

Please sign in to comment.