Skip to content

Commit

Permalink
Fix unexpected_cfg lint coming from #[cfg(rust_analyzer)]
Browse files Browse the repository at this point in the history
  • Loading branch information
Veetaha committed Nov 20, 2024
1 parent be3e2b2 commit a9e914e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bon-macros/src/util/ide.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ pub(crate) fn generate_completion_triggers(meta: Vec<Meta>) -> TokenStream {
// The special `rust_analyzer` CFG is enabled only when Rust Analyzer is
// running its code analysis. This allows us to provide code that is
// useful only for Rust Analyzer for it to provide hints and completions.
#[allow(unexpected_cfgs)]
#[cfg(rust_analyzer)]
const _: () = {
#completion_triggers
Expand Down

0 comments on commit a9e914e

Please sign in to comment.