macro: clear a warning

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-07-31 14:39:18 +02:00
parent 14acfcd5cd
commit 3a36ff78df

View File

@ -701,6 +701,7 @@ fn named_struct_impl_verify(span: Span, fields: &[StructField]) -> Result<TokenS
if !body.is_empty() {
body = quote_spanned! { span =>
#[allow(unused_mut)]
let mut error_string = String::new();
#body
if !error_string.is_empty() {