Skip to content

Commit

Permalink
update warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
Gentoli committed Dec 6, 2020
1 parent d964f58 commit e4e96a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ pub fn gen_hid_descriptor(args: TokenStream, input: TokenStream) -> TokenStream

if !named_fields.is_empty() {
println!(
"WARN: unused fields {} in struct {} will be ignored",
named_fields.iter().fold(String::new(), |o, (i, _)| o + i.to_string().as_str() + ", "),
"WARN: unused fields [{}]in struct {} will be removed",
named_fields.iter().fold(String::new(), |o, (i, _)| o + i.to_string().as_str() + ","),
ident);
}

Expand Down

0 comments on commit e4e96a3

Please sign in to comment.