Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWilsn committed Jun 19, 2024
1 parent 87a6847 commit db50295
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions eipw-lint/src/lints/markdown/relative_links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ where
.into_iter()
.filter(|l| re.is_match(&l.address) && !exceptions.is_match(&l.address));

for Link { address, line_start } in links {
for Link {
address,
line_start,
} in links
{
let (suggestion, extra_help) = if let Some(caps) = eip_re.captures(&address) {
if let Some(id_number) = caps.get(2) {
let suggestion = format!("./eip-{}.md", id_number.as_str());
Expand All @@ -61,7 +65,7 @@ where
} else {
(address, false)
};

let mut footer = vec![];

let suggestion_label = format!("use `{}` instead", suggestion);
Expand Down
4 changes: 2 additions & 2 deletions eipw-lint/tests/lint_markdown_relative_links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ header: value1
5 | <a href="//creativecommons.org/publicdomain/zero/1.0/">copyright</a>
|
= help: use `../LICENSE.md` instead
"#
"#
);
}

Expand Down Expand Up @@ -853,4 +853,4 @@ header: value1
= help: use `../assets/erc-712/eth_sign.png` instead
"#
);
}
}

0 comments on commit db50295

Please sign in to comment.