From fcdfeea54824c849a07b5826e8d234b5e7b37b1c Mon Sep 17 00:00:00 2001 From: sigoden Date: Tue, 11 Jun 2024 14:28:33 +0800 Subject: refactor: rename `function_matcher` to `selected_functions` (#583) --- src/function.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/function.rs') diff --git a/src/function.rs b/src/function.rs index f16fe3f..068cee0 100644 --- a/src/function.rs +++ b/src/function.rs @@ -15,7 +15,7 @@ use std::{ path::Path, }; -pub const FUNCTION_ALL_MATCHER: &str = ".*"; +pub const SELECTED_ALL_FUNCTIONS: &str = ".*"; pub type ToolResults = (Vec, String); pub type FunctionsFilter = String; @@ -80,8 +80,8 @@ impl Functions { }) } - pub fn select(&self, matcher: &str) -> Option> { - let regex = Regex::new(&format!("^({matcher})$")).ok()?; + pub fn select(&self, filter: &FunctionsFilter) -> Option> { + let regex = Regex::new(&format!("^({filter})$")).ok()?; let output: Vec = self .declarations .iter() -- cgit v1.2.3