mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
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:
commit
85c9a83262
175 changed files with 592 additions and 735 deletions
|
@ -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()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue