Skip to content

Commit b9006b6

Browse files
committed
fixup! controllers::team: Use json! macro to simplify JSON serialization code
1 parent b2f005b commit b9006b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/team.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ pub fn show_team(req: &mut dyn RequestExt) -> EndpointResult {
1212
let conn = req.db_read_only()?;
1313
let team: Team = teams.filter(login.eq(name)).first(&*conn)?;
1414

15-
Ok(req.json(&json!({ team: EncodableTeam::from(team) })))
15+
Ok(req.json(&json!({ "team": EncodableTeam::from(team) })))
1616
}

0 commit comments

Comments
 (0)