fixed type inference on FromIterator call
This commit is contained in:
parent
981707c9c9
commit
12472ab397
1 changed files with 2 additions and 2 deletions
|
@ -96,8 +96,8 @@ fn alter(rt: &Runtime, id: &str, add: Option<&str>, rem: Option<&str>, set: Opti
|
||||||
|
|
||||||
set.map(|tags| {
|
set.map(|tags| {
|
||||||
info!("Setting tags '{}'", tags);
|
info!("Setting tags '{}'", tags);
|
||||||
let tags = tags.split(',').map(String::from).collect();
|
let tags : Vec<_> = tags.split(',').map(String::from).collect();
|
||||||
if let Err(e) = e.set_tags(tags) {
|
if let Err(e) = e.set_tags(&tags) {
|
||||||
trace_error(&e);
|
trace_error(&e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue