Skip to content

Commit ade1378

Browse files
committed
clippy: prefer unwrap_or_default()
1 parent 2eb5f51 commit ade1378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql_client_codegen/src/schema/json_conversion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ fn ingest_object(schema: &mut Schema, object: &mut FullType) {
247247
})
248248
.collect()
249249
})
250-
.unwrap_or_else(Vec::new),
250+
.unwrap_or_default(),
251251
fields: field_ids,
252252
};
253253

0 commit comments

Comments
 (0)