Skip to content

Commit

Permalink
fix(ls): not obeying configuration changes
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-potter committed Feb 21, 2025
1 parent 8578e2b commit 807efaf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion harper-core/src/linting/lint_group.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::collections::BTreeMap;
use std::mem;
use std::sync::Arc;

use cached::proc_macro::cached;
Expand Down Expand Up @@ -109,7 +110,9 @@ impl LintGroupConfig {

/// Fill the group with the values for the curated lint group.
pub fn fill_with_curated(&mut self) {
self.merge_from(&mut Self::new_curated());
let mut temp = Self::new_curated();
mem::swap(self, &mut temp);
self.merge_from(&mut temp);
}

pub fn new_curated() -> Self {
Expand Down

0 comments on commit 807efaf

Please sign in to comment.