From 6e90b9bf20c02f2483af4229f8b671bd52121ea7 Mon Sep 17 00:00:00 2001 From: Yuuki Toriyama Date: Mon, 6 May 2024 03:07:46 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20clippy=E3=81=AE=E8=AD=A6=E5=91=8A?= =?UTF-8?q?=E5=AF=BE=E5=BF=9C:=20`VagueExpressionAdapter`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/parser/adapter/vague_expression_adapter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/parser/adapter/vague_expression_adapter.rs b/core/src/parser/adapter/vague_expression_adapter.rs index 1542237f..9f0d9795 100644 --- a/core/src/parser/adapter/vague_expression_adapter.rs +++ b/core/src/parser/adapter/vague_expression_adapter.rs @@ -7,7 +7,7 @@ use nom::sequence::tuple; pub struct VagueExpressionAdapter; impl VagueExpressionAdapter { - pub fn apply(self, input: &str, region_name_list: &Vec) -> Option<(String, String)> { + pub fn apply(self, input: &str, region_name_list: &[String]) -> Option<(String, String)> { if let Ok(highest_match) = SequenceMatcher::get_most_similar_match(input, region_name_list, None) {