diff --git a/src/registry.rs b/src/registry.rs index 930c720db6..267348e8fb 100644 --- a/src/registry.rs +++ b/src/registry.rs @@ -1332,9 +1332,9 @@ pub struct Check { } impl Check { - pub fn new(kind: CheckKind, range: Range) -> Self { + pub fn new>(kind: K, range: Range) -> Self { Self { - kind, + kind: kind.into(), location: range.location, end_location: range.end_location, fix: None,