type: ignore[codes] and knot: ignore (#15078)

This commit is contained in:
Micha Reiser 2024-12-23 10:52:43 +01:00 committed by GitHub
parent 9eb73cb7e0
commit 2f85749fa0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 737 additions and 48 deletions

View file

@ -321,7 +321,7 @@ impl LintRegistryBuilder {
}
}
#[derive(Default, Debug)]
#[derive(Default, Debug, Clone)]
pub struct LintRegistry {
lints: Vec<LintId>,
by_name: FxHashMap<&'static str, LintEntry>,
@ -385,7 +385,7 @@ pub enum GetLintError {
Unknown(String),
}
#[derive(Debug, PartialEq, Eq)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum LintEntry {
/// An existing lint rule. Can be in preview, stable or deprecated.
Lint(LintId),