From f4ef97a6b43fa9606593df3d105be367e0784041 Mon Sep 17 00:00:00 2001 From: rszyma Date: Thu, 16 Nov 2023 20:48:57 +0100 Subject: [PATCH] cargo clippy --fix --- kls/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kls/src/lib.rs b/kls/src/lib.rs index f7571b5..5550581 100644 --- a/kls/src/lib.rs +++ b/kls/src/lib.rs @@ -55,13 +55,11 @@ impl Kanata { ) -> Result<(), CustomParseError> { let mut get_file_content_fn_impl = |_: &Path| { if is_opened_in_workspace { - Err(kanata_extension_error(vec![ - "Includes currently can't be analyzed, because the support for it is disabled in the extension settings.", + Err(kanata_extension_error(["Includes currently can't be analyzed, because the support for it is disabled in the extension settings.", "If you want to enable `includes` support, you need to:", "\t1. Go to the settings in VS Code (File > Preferences > Settings)", "\t2. Navigate to vscode-kanata settings: (Extensions > Kanata)", - "\t3. Change `Includes And Workspaces` to `workspace`", - ].join("\n"))) + "\t3. Change `Includes And Workspaces` to `workspace`"].join("\n"))) } else { Err(kanata_extension_error( "Includes can't be analyzed, because the current file is not opened in a workspace. Please, open the containing folder (File > Open Folder).",