From e9ceba9fd9507cc962e788179ee411f9bf08c4b4 Mon Sep 17 00:00:00 2001 From: Tom French Date: Fri, 18 Aug 2023 12:43:18 +0100 Subject: [PATCH 1/2] chore: clippy --- crates/lsp/src/lib.rs | 2 +- crates/noirc_evaluator/src/brillig/brillig_ir/debug_show.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/lsp/src/lib.rs b/crates/lsp/src/lib.rs index d8b572db349..0b9754e480f 100644 --- a/crates/lsp/src/lib.rs +++ b/crates/lsp/src/lib.rs @@ -520,7 +520,7 @@ fn on_did_save_text_document( } // We need to refresh lenses when we compile since that's the only time they can be accurately reflected - let _ = state.client.code_lens_refresh(()); + let _ = state.client.code_lens_refresh(()).await; let _ = state.client.publish_diagnostics(PublishDiagnosticsParams { uri: params.text_document.uri, diff --git a/crates/noirc_evaluator/src/brillig/brillig_ir/debug_show.rs b/crates/noirc_evaluator/src/brillig/brillig_ir/debug_show.rs index 2bb753de760..7a968c6ea08 100644 --- a/crates/noirc_evaluator/src/brillig/brillig_ir/debug_show.rs +++ b/crates/noirc_evaluator/src/brillig/brillig_ir/debug_show.rs @@ -1,4 +1,5 @@ -///! This module contains functions for producing a higher level view disassembler of Brillig. +//! This module contains functions for producing a higher level view disassembler of Brillig. + use super::BrilligBinaryOp; use crate::brillig::brillig_ir::{ReservedRegisters, BRILLIG_MEMORY_ADDRESSING_BIT_SIZE}; use acvm::acir::brillig::{ From 7599802191bdfa79b28624cfc87cbb094ed03759 Mon Sep 17 00:00:00 2001 From: Tom French Date: Fri, 18 Aug 2023 13:19:56 +0100 Subject: [PATCH 2/2] chore: switch to other resolution of clippy warning --- crates/lsp/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/lsp/src/lib.rs b/crates/lsp/src/lib.rs index 0b9754e480f..802ecab5798 100644 --- a/crates/lsp/src/lib.rs +++ b/crates/lsp/src/lib.rs @@ -520,7 +520,7 @@ fn on_did_save_text_document( } // We need to refresh lenses when we compile since that's the only time they can be accurately reflected - let _ = state.client.code_lens_refresh(()).await; + std::mem::drop(state.client.code_lens_refresh(())); let _ = state.client.publish_diagnostics(PublishDiagnosticsParams { uri: params.text_document.uri,