Auto merge of #16398 - Urhengulas:satisfy-clippy, r=Veykril

`cargo clippy --fix`

This PR is the result of running `cargo clippy --fix && cargo fmt` in the root of the repository. I did not manually review all the changes, but just skimmed through a few of them. The tests still pass, so it seems fine.
This commit is contained in:
bors 2024-01-19 09:43:35 +00:00
commit 85c9a83262
175 changed files with 592 additions and 735 deletions

View file

@ -351,8 +351,12 @@ fn get_doc_links(
web_url = join_url(web_url, &file);
local_url = join_url(local_url, &file);
web_url.as_mut().map(|url| url.set_fragment(frag.as_deref()));
local_url.as_mut().map(|url| url.set_fragment(frag.as_deref()));
if let Some(url) = web_url.as_mut() {
url.set_fragment(frag.as_deref())
}
if let Some(url) = local_url.as_mut() {
url.set_fragment(frag.as_deref())
}
DocumentationLinks {
web_url: web_url.map(|it| it.into()),