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:
Matthias Krüger 2021-03-17 02:19:40 +01:00
parent 048dad8c2e
commit 64b91393b8
3 changed files with 4 additions and 4 deletions

View file

@ -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(