From 7a14cf503bda4f15239dd094714861ea6c7aa5ef Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 31 Jan 2017 22:19:45 +0000 Subject: [PATCH] firmware: fix a warning. --- artiq/firmware/runtime/rpc_proto.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/artiq/firmware/runtime/rpc_proto.rs b/artiq/firmware/runtime/rpc_proto.rs index 85d7ce5d8..493bcb3bc 100644 --- a/artiq/firmware/runtime/rpc_proto.rs +++ b/artiq/firmware/runtime/rpc_proto.rs @@ -168,9 +168,11 @@ pub fn send_args(writer: &mut Write, service: u32, tag_bytes: &[u8], let (arg_tags_bytes, return_tag_bytes) = split_tag(tag_bytes); let mut args_it = TagIterator::new(arg_tags_bytes); - let return_it = TagIterator::new(return_tag_bytes); #[cfg(not(ksupport))] - trace!("send<{}>({})->{}", service, args_it, return_it); + { + let return_it = TagIterator::new(return_tag_bytes); + trace!("send<{}>({})->{}", service, args_it, return_it); + } write_u32(writer, service)?; for index in 0.. {