diff options
Diffstat (limited to 'src/main.rs')
| -rwxr-xr-x | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 0f64a7e..b6033c1 100755 --- a/src/main.rs +++ b/src/main.rs @@ -4,9 +4,9 @@ use nfa::*; use regex::*; fn test(regex: &str, input: &str) -> bool { - let regex = Regex::new(String::from(regex)); + let regex = Regex::new(regex); let nfa = NFA::from(regex); - nfa.matches(String::from(input)) + nfa.matches(input) } fn main() { |
