Del implemented
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Justine Pelletreau
2023-02-03 20:10:14 +01:00
parent 4d5cc2fa65
commit b31e3d4be4
2 changed files with 17 additions and 1 deletions

View File

@ -107,7 +107,7 @@ impl Search {
fn discriminate_search_type(input: &String) -> SearchType {
let tamere = input.clone();
let mut a = tamere.split(" ").collect::<Vec<&str>>();
let y = String::from(a.pop().unwrap());
let _y = String::from(a.pop().unwrap());
let mut x = String::from(a.join(" ").trim());
if x.len() > 0 {
x.push_str(" ")