Skip to content

Commit 4ec558f

Browse files
author
Ian
committed
Suppress unused variable warning
1 parent dc94440 commit 4ec558f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ fn concat<T>(mut v1: Vec<T>, mut v2: Vec<T>) -> Vec<T> {
189189

190190
fn check_for_default(triples: &mut Vec<(TokenStream, Ident, TokenTree)>) {
191191
let mut default_position: Option<usize> = None;
192-
for (attributes, variant_name, variant_value) in triples.into_iter() {
192+
for (attributes, _variant_name, variant_value) in triples.into_iter() {
193193
if attributes.to_string().contains("default") {
194194
if default_position.is_some() {
195195
// error!("Multiple variants marked as default");

0 commit comments

Comments
 (0)