style(import-fifa17): rustfmt the club-family classifier and its tests
This commit is contained in:
@@ -1312,15 +1312,16 @@ pub fn emit_content(
|
||||
// cannot derive the right kind (it is FIFA17 taxonomy), so hand it the
|
||||
// mapping. Players are included too: a definition that was mis-set stays
|
||||
// correctable, and a rerun changes nothing.
|
||||
let assignments: Vec<serde_json::Value> = report
|
||||
.definitions
|
||||
.supported
|
||||
.iter()
|
||||
.map(|d| serde_json::json!({ "card_id": d.card_id, "content_kind": "player" }))
|
||||
.chain(report.non_player.supported.iter().map(|d| {
|
||||
serde_json::json!({ "card_id": d.card_id, "content_kind": d.kind.as_str() })
|
||||
}))
|
||||
.collect();
|
||||
let assignments: Vec<serde_json::Value> =
|
||||
report
|
||||
.definitions
|
||||
.supported
|
||||
.iter()
|
||||
.map(|d| serde_json::json!({ "card_id": d.card_id, "content_kind": "player" }))
|
||||
.chain(report.non_player.supported.iter().map(
|
||||
|d| serde_json::json!({ "card_id": d.card_id, "content_kind": d.kind.as_str() }),
|
||||
))
|
||||
.collect();
|
||||
let reclassify = content_dir.join("fifa17-reclassify.json");
|
||||
write_json_pretty(
|
||||
&reclassify,
|
||||
|
||||
Reference in New Issue
Block a user