From 12472ab397801119fb679cac53f2ad671301e25a Mon Sep 17 00:00:00 2001 From: Andre Bogus Date: Tue, 3 May 2016 23:26:45 +0200 Subject: [PATCH] fixed type inference on FromIterator call --- imag-tag/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imag-tag/src/main.rs b/imag-tag/src/main.rs index 9ed409a3..977098c0 100644 --- a/imag-tag/src/main.rs +++ b/imag-tag/src/main.rs @@ -96,8 +96,8 @@ fn alter(rt: &Runtime, id: &str, add: Option<&str>, rem: Option<&str>, set: Opti set.map(|tags| { info!("Setting tags '{}'", tags); - let tags = tags.split(',').map(String::from).collect(); - if let Err(e) = e.set_tags(tags) { + let tags : Vec<_> = tags.split(',').map(String::from).collect(); + if let Err(e) = e.set_tags(&tags) { trace_error(&e); } });