I seem to be mixing types but I can't quite figure out how to fix this. Can someone help me?
let args_vector: Vec<String> = env::args().collect();
for arg in &args_vector[1..]{
match arg{
"--bytes" => {
flag.c = true;
},
"--chars" => {
flag.m =true;
},
_ => println! ("Error"),
}
}
On the matches, I'm getting this error:
mismatched types: expected struct `std::string::String`, found str