mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
cargo clippy --fix
This commit is contained in:
parent
1ab8c7fd27
commit
fad4fa163c
178 changed files with 595 additions and 738 deletions
|
@ -352,8 +352,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