From 8a3ec443f176218384db8c8610bbada9c43a6ea5 Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Thu, 9 Feb 2023 23:27:08 +0100 Subject: Fix new clippy lints (#5892) --- helix-lsp/src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-lsp/src') diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index 365c6990..cb6e5d81 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -628,7 +628,7 @@ impl Client { Some(self.notify::( lsp::DidSaveTextDocumentParams { text_document, - text: include_text.then(|| text.into()), + text: include_text.then_some(text.into()), }, )) } -- cgit v1.2.3-70-g09d2