Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

feat: make `IgnoredLints` clonable

Elijah Potter0a25b5061c49
diff --git a/harper-core/src/ignored_lints/mod.rs b/harper-core/src/ignored_lints/mod.rs
index 2c8464189..02eb0cca8 100644
--- a/harper-core/src/ignored_lints/mod.rs
+++ b/harper-core/src/ignored_lints/mod.rs
@@ -10,7 +10,7 @@ use crate::{Document, linting::Lint};
///
/// To use this structure, apply [`Self::remove_ignored`] on the output of a
/// [`Linter`](crate::linting::Linter).
-#[derive(Debug, Default, Serialize, Deserialize)]
+#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct IgnoredLints {
context_hashes: HashSet<u64>,
}