Clippy
This commit is contained in:
parent
1a3b783120
commit
76b0b5f5dd
@ -99,7 +99,7 @@ impl<'a> SerializingPage<'a> {
|
|||||||
.map(|p| Box::new(Self::new(&lib.pages[p], Some(lib), false)));
|
.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 {
|
Self {
|
||||||
@ -192,7 +192,7 @@ impl<'a> SerializingSection<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
backlinks = find_backlinks(§ion.file.relative, &lib);
|
backlinks = find_backlinks(§ion.file.relative, lib);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -311,7 +311,7 @@ impl Site {
|
|||||||
);
|
);
|
||||||
match self.config.link_checker.internal_level {
|
match self.config.link_checker.internal_level {
|
||||||
config::LinkCheckerLevel::Warn => console::warn(&msg),
|
config::LinkCheckerLevel::Warn => console::warn(&msg),
|
||||||
config::LinkCheckerLevel::Error => return Err(anyhow!(msg.clone())),
|
config::LinkCheckerLevel::Error => return Err(anyhow!(msg)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -331,7 +331,7 @@ impl Site {
|
|||||||
);
|
);
|
||||||
match self.config.link_checker.external_level {
|
match self.config.link_checker.external_level {
|
||||||
config::LinkCheckerLevel::Warn => console::warn(&msg),
|
config::LinkCheckerLevel::Warn => console::warn(&msg),
|
||||||
config::LinkCheckerLevel::Error => return Err(anyhow!(msg.clone())),
|
config::LinkCheckerLevel::Error => return Err(anyhow!(msg)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -152,7 +152,7 @@ pub fn check_external_links(site: &Site) -> Vec<String> {
|
|||||||
// the ones that have invalid URLs
|
// the ones that have invalid URLs
|
||||||
for (file_path, links) in external_links {
|
for (file_path, links) in external_links {
|
||||||
for link in 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;
|
skipped_link_count += 1;
|
||||||
} else {
|
} else {
|
||||||
match get_link_domain(link) {
|
match get_link_domain(link) {
|
||||||
|
Loading…
Reference in New Issue
Block a user