Skip to content

Commit

Permalink
cargo clippy --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rszyma committed Nov 16, 2023
1 parent df3eaa2 commit f4ef97a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kls/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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).",
Expand Down

0 comments on commit f4ef97a

Please sign in to comment.