Skip to content

Commit

Permalink
helix-lsp-types: use bitflags::bitflags rather than extern crate
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
the-mikedavis committed Dec 17, 2024
1 parent 1980bd5 commit 6eb186e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-lsp-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down

0 comments on commit 6eb186e

Please sign in to comment.