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) {