mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
remove uselessly wrapped ?s. (clippy::meedless_question_mark
let x = Some(3); let y = Some(x?); can just be: let y = x
This commit is contained in:
parent
048dad8c2e
commit
64b91393b8
3 changed files with 4 additions and 4 deletions
|
@ -1134,7 +1134,7 @@ pub(crate) fn handle_code_lens_resolve(
|
|||
) -> Result<CodeLens> {
|
||||
let annotation = from_proto::annotation(&snap, code_lens)?;
|
||||
|
||||
Ok(to_proto::code_lens(&snap, snap.analysis.resolve_annotation(annotation)?)?)
|
||||
to_proto::code_lens(&snap, snap.analysis.resolve_annotation(annotation)?)
|
||||
}
|
||||
|
||||
pub(crate) fn handle_document_highlight(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue