Skip to content

Commit f722076

Browse files
author
daniel.eades
committed
explicitly match unit values (clippy::ignored_unit_patterns)
1 parent 4730fa1 commit f722076

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql_query_derive/src/attributes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pub fn extract_deprecation_strategy(
110110
.to_lowercase()
111111
.as_str()
112112
.parse()
113-
.map_err(|_| syn::Error::new_spanned(ast, DEPRECATION_ERROR.to_owned()))
113+
.map_err(|()| syn::Error::new_spanned(ast, DEPRECATION_ERROR.to_owned()))
114114
}
115115

116116
/// Get the deprecation from a struct attribute in the derive case.
@@ -119,7 +119,7 @@ pub fn extract_normalization(ast: &syn::DeriveInput) -> Result<Normalization, sy
119119
.to_lowercase()
120120
.as_str()
121121
.parse()
122-
.map_err(|_| syn::Error::new_spanned(ast, NORMALIZATION_ERROR))
122+
.map_err(|()| syn::Error::new_spanned(ast, NORMALIZATION_ERROR))
123123
}
124124

125125
pub fn extract_fragments_other_variant(ast: &syn::DeriveInput) -> bool {

0 commit comments

Comments
 (0)