simplify this
This commit is contained in:
@@ -183,7 +183,7 @@ pub fn test_func(function_string: &str) -> Option<String> {
|
|||||||
if var_names != ["x"] {
|
if var_names != ["x"] {
|
||||||
let var_names_not_x: Vec<String> = var_names
|
let var_names_not_x: Vec<String> = var_names
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|ele| *ele != &"x".to_owned())
|
.filter(|ele| *ele != "x")
|
||||||
.cloned()
|
.cloned()
|
||||||
.collect::<Vec<String>>();
|
.collect::<Vec<String>>();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user