Skip to content

Commit

Permalink
fix: clippyの警告対応: VagueExpressionAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
YuukiToriyama committed May 5, 2024
1 parent 95e57d9 commit 6e90b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/parser/adapter/vague_expression_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use nom::sequence::tuple;
pub struct VagueExpressionAdapter;

impl VagueExpressionAdapter {
pub fn apply(self, input: &str, region_name_list: &Vec<String>) -> 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)
{
Expand Down

0 comments on commit 6e90b9b

Please sign in to comment.