clippy
This commit is contained in:
parent
9517843213
commit
be4028e697
@ -116,7 +116,7 @@ pub fn test_func(function_string: &str) -> Option<String> {
|
|||||||
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".to_owned())
|
||||||
.map(|ele| ele.clone())
|
.cloned()
|
||||||
.collect::<Vec<String>>();
|
.collect::<Vec<String>>();
|
||||||
|
|
||||||
return match var_names_not_x.len() {
|
return match var_names_not_x.len() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user