From 1183c6c244206ce2a51b398bbb5b82f5da460f18 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Mon, 14 Oct 2024 11:52:08 -0400 Subject: [PATCH] minor: `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 @@ able to parse any URI, such as `urn:isbn:0451450523`. */ #![allow(non_upper_case_globals)] #![forbid(unsafe_code)] -#[macro_use] -extern crate bitflags; + +use bitflags::bitflags; use std::{collections::HashMap, fmt::Debug};