Skip to content

Commit aacca46

Browse files
danieleadesdaniel.eades
authored and
daniel.eades
committed
remove some redundant closures (clippy::redundant_closure)
1 parent 87db1ea commit aacca46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql_client_codegen/src/codegen_options.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl GraphQLClientCodegenOptions {
109109
.as_deref()
110110
.into_iter()
111111
.flat_map(|s| s.split(','))
112-
.map(|s| s.trim());
112+
.map(str::trim);
113113

114114
std::iter::once("Serialize").chain(additional)
115115
}
@@ -130,7 +130,7 @@ impl GraphQLClientCodegenOptions {
130130
.as_deref()
131131
.into_iter()
132132
.flat_map(|s| s.split(','))
133-
.map(|s| s.trim())
133+
.map(str::trim)
134134
}
135135

136136
/// Comma-separated list of additional traits we want to derive for responses.

0 commit comments

Comments
 (0)