aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/api_server.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-22 17:26:57 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-22 17:26:57 -0700
commitbfcf13c205e7c0fd38a0fc68194f8ab9550ca0a7 (patch)
tree423eb676a9b7ec70c5d03c2af38493adc053ebd5 /rust/src/api_server.rs
parent7c53a08666d28f2a2f4c9572f63ae09a362b017b (diff)
downloadfatcat-bfcf13c205e7c0fd38a0fc68194f8ab9550ca0a7.tar.gz
fatcat-bfcf13c205e7c0fd38a0fc68194f8ab9550ca0a7.zip
rustfmt, and implement schema tweaks
Diffstat (limited to 'rust/src/api_server.rs')
-rw-r--r--rust/src/api_server.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs
index d9a86a3f..9562a0f2 100644
--- a/rust/src/api_server.rs
+++ b/rust/src/api_server.rs
@@ -175,8 +175,7 @@ impl Server {
editgroup::editor_id.eq(FatCatId::from_str(&entity.editor_id)?.to_uuid()),
editgroup::description.eq(entity.description),
editgroup::extra_json.eq(entity.extra),
- ))
- .get_result(conn)?;
+ )).get_result(conn)?;
Ok(Editgroup {
id: Some(uuid2fcid(&row.id)),
@@ -272,8 +271,7 @@ impl Server {
editgroup: Some(eg_row.into_model_partial()),
editgroup_id: uuid2fcid(&cl_row.editgroup_id),
timestamp: chrono::DateTime::from_utc(cl_row.timestamp, chrono::Utc),
- })
- .collect();
+ }).collect();
Ok(entries)
}
@@ -297,8 +295,7 @@ impl Server {
editgroup: Some(eg_row.into_model_partial()),
editgroup_id: uuid2fcid(&cl_row.editgroup_id),
timestamp: chrono::DateTime::from_utc(cl_row.timestamp, chrono::Utc),
- })
- .collect();
+ }).collect();
Ok(entries)
}