diff options
Diffstat (limited to 'src/function.rs')
| -rw-r--r-- | src/function.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/function.rs b/src/function.rs index 9cb098a..29bb2c3 100644 --- a/src/function.rs +++ b/src/function.rs @@ -125,8 +125,7 @@ impl Function { }) } - pub fn select(&self, matcher: Option<&str>) -> Option<Vec<FunctionDeclaration>> { - let matcher = matcher?; + pub fn select(&self, matcher: &str) -> Option<Vec<FunctionDeclaration>> { let regex = Regex::new(&format!("^({matcher})$")).ok()?; let output: Vec<FunctionDeclaration> = self .declarations |
