diff options
author | Matthias Krüger <[email protected]> | 2021-03-17 01:19:40 +0000 |
---|---|---|
committer | Matthias Krüger <[email protected]> | 2021-03-17 01:19:40 +0000 |
commit | 64b91393b85eb2b5d41ccbd3048dcc61eb8061c7 (patch) | |
tree | 8b08f99b7b8377cb1658b5a9ff7c932b5de3bc14 /crates/rust-analyzer/src/handlers.rs | |
parent | 048dad8c2e86006e53b3a134279729efb28b9e32 (diff) |
remove uselessly wrapped ?s. (clippy::meedless_question_mark
let x = Some(3);
let y = Some(x?);
can just be:
let y = x
Diffstat (limited to 'crates/rust-analyzer/src/handlers.rs')
-rw-r--r-- | crates/rust-analyzer/src/handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/handlers.rs b/crates/rust-analyzer/src/handlers.rs index 6fb7da79c..b6f484e51 100644 --- a/crates/rust-analyzer/src/handlers.rs +++ b/crates/rust-analyzer/src/handlers.rs | |||
@@ -1134,7 +1134,7 @@ pub(crate) fn handle_code_lens_resolve( | |||
1134 | ) -> Result<CodeLens> { | 1134 | ) -> Result<CodeLens> { |
1135 | let annotation = from_proto::annotation(&snap, code_lens)?; | 1135 | let annotation = from_proto::annotation(&snap, code_lens)?; |
1136 | 1136 | ||
1137 | Ok(to_proto::code_lens(&snap, snap.analysis.resolve_annotation(annotation)?)?) | 1137 | to_proto::code_lens(&snap, snap.analysis.resolve_annotation(annotation)?) |
1138 | } | 1138 | } |
1139 | 1139 | ||
1140 | pub(crate) fn handle_document_highlight( | 1140 | pub(crate) fn handle_document_highlight( |