From 5fda04351260c9f384f648b98dbd86ac339dc175 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Mon, 28 Mar 2022 09:16:36 -0400 Subject: [PATCH] simplify this --- src/parsing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsing.rs b/src/parsing.rs index 27312b0..08e790f 100644 --- a/src/parsing.rs +++ b/src/parsing.rs @@ -183,7 +183,7 @@ pub fn test_func(function_string: &str) -> Option { if var_names != ["x"] { let var_names_not_x: Vec = var_names .iter() - .filter(|ele| *ele != &"x".to_owned()) + .filter(|ele| *ele != "x") .cloned() .collect::>();