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.
This commit is contained in:
Michael Davis 2024-10-14 11:52:08 -04:00
parent 1980bd5992
commit 6eb186eb7b
No known key found for this signature in database

View File

@ -16,8 +16,8 @@
*/ */
#![allow(non_upper_case_globals)] #![allow(non_upper_case_globals)]
#![forbid(unsafe_code)] #![forbid(unsafe_code)]
#[macro_use]
extern crate bitflags; use bitflags::bitflags;
use std::{collections::HashMap, fmt::Debug}; use std::{collections::HashMap, fmt::Debug};