Skip to content

Commit 325b92b

Browse files
Armin BecherArmin Becher
authored andcommitted
style: fix formatting
1 parent acf3187 commit 325b92b

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

src/file_traversal.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ pub fn find(config: &Config, result: &mut Vec<MarkupFile>) {
1212
None => panic!("Bug! markup_types must be set"),
1313
};
1414

15-
info!(
16-
"Search for files of markup types '{markup_types:?}' in directory '{root:?}'"
17-
);
15+
info!("Search for files of markup types '{markup_types:?}' in directory '{root:?}'");
1816

1917
for entry in WalkDir::new(root)
2018
.follow_links(false)

src/link_extractors/link_extractor.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ pub fn find_links(file: &MarkupFile) -> Vec<Result<MarkupLink, BrokenExtractedLi
7878
links
7979
}
8080
Err(e) => {
81-
warn!(
82-
"File '{path}'. IO Error: \"{e}\". Check your file encoding."
83-
);
81+
warn!("File '{path}'. IO Error: \"{e}\". Check your file encoding.");
8482
vec![]
8583
}
8684
}

src/link_extractors/markdown_link_extractor.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,7 @@ mod tests {
404404
fn referenced_link_tag_only() {
405405
let le = MarkdownLinkExtractor();
406406
let link_str = "http://example.net/";
407-
let input = format!(
408-
"Foo Bar\n\n[Arbitrary CASE-insensitive reference text]: {link_str}"
409-
);
407+
let input = format!("Foo Bar\n\n[Arbitrary CASE-insensitive reference text]: {link_str}");
410408
let result = le.find_links(&input);
411409
assert_eq!(0, result.len());
412410
}

src/link_validator/file_system.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ pub async fn check_filesystem(target: &str, config: &Config) -> LinkCheckResult
2525
};
2626
debug!("Check if file ignoring the extension exists.");
2727
if target_parent.exists().await {
28-
debug!(
29-
"Parent {target_parent:?} exists. Search dir for file ignoring the extension."
30-
);
28+
debug!("Parent {target_parent:?} exists. Search dir for file ignoring the extension.");
3129
for entry in WalkDir::new(target_parent)
3230
.follow_links(false)
3331
.max_depth(1)

0 commit comments

Comments
 (0)