simplify this
This commit is contained in:
parent
2bd1f641f9
commit
5fda043512
@ -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>>();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user