fixed type inference on FromIterator call

This commit is contained in:
Andre Bogus 2016-05-03 23:26:45 +02:00
parent 981707c9c9
commit 12472ab397

View file

@ -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);
} }
}); });