Replace Query and QueryOption with better API #35
@ -69,13 +69,8 @@ impl ToBeetsArgs for Query {
|
||||
fn to_args(&self) -> Vec<String> {
|
||||
let mut arguments: Vec<String> = vec![];
|
||||
|
||||
for field in self.include.iter() {
|
||||
arguments.push(field.to_arg(true));
|
||||
}
|
||||
|
||||
for field in self.exclude.iter() {
|
||||
arguments.push(field.to_arg(false));
|
||||
}
|
||||
arguments.extend(self.include.iter().map(|field| field.to_arg(true)));
|
||||
arguments.extend(self.exclude.iter().map(|field| field.to_arg(false)));
|
||||
|
||||
arguments
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user