From 6eb186eb7b2fb3cc4574fa50e885a6b924fff0e4 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Mon, 14 Oct 2024 11:52:08 -0400 Subject: [PATCH] helix-lsp-types: `use bitflags::bitflags` rather than extern crate This seems to be a historical artifact in `lsp_types` - we can use a regular `use` statement to pull in the `bitflags!` macro rather than an external crate definition. This fixes rust-analyzer's ability to find the macro at least on rust-analyzer 2024-02-26. --- helix-lsp-types/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-lsp-types/src/lib.rs b/helix-lsp-types/src/lib.rs index 3ea1c0cd0..41c483f42 100644 --- a/helix-lsp-types/src/lib.rs +++ b/helix-lsp-types/src/lib.rs @@ -16,8 +16,8 @@ */ #![allow(non_upper_case_globals)] #![forbid(unsafe_code)] -#[macro_use] -extern crate bitflags; + +use bitflags::bitflags; use std::{collections::HashMap, fmt::Debug};