From 3c8fdbf107bbfcea0f03d26bbf1615913699a4db Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 6 Jan 2023 23:00:33 +0100 Subject: [PATCH] structs 5/9: Make Check::new call into() on the passed kind --- src/registry.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,