Skip to content

Commit 87db1ea

Browse files
author
daniel.eades
committed
explicitly match unit values (clippy::ignored_unit_patterns)
1 parent 9dd61dd commit 87db1ea

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
@@ -107,7 +107,7 @@ pub fn extract_deprecation_strategy(
107107
.to_lowercase()
108108
.as_str()
109109
.parse()
110-
.map_err(|_| syn::Error::new_spanned(ast, DEPRECATION_ERROR.to_owned()))
110+
.map_err(|()| syn::Error::new_spanned(ast, DEPRECATION_ERROR.to_owned()))
111111
}
112112

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

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

0 commit comments

Comments
 (0)