From 3ed7db573438d3620d295813a81237acb91155cb Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 30 Jun 2018 16:50:32 -0700 Subject: refactor changelog entry spec structure --- rust/src/api_server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src') diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs index ca57ae29..aaf3d9a7 100644 --- a/rust/src/api_server.rs +++ b/rust/src/api_server.rs @@ -899,7 +899,7 @@ impl Server { Ok(ed) } - fn editor_changelog_get_handler(&self, username: String) -> Result { + fn editor_changelog_get_handler(&self, username: String) -> Result> { let conn = self.db_pool.get().expect("db_pool error"); // TODO: single query @@ -913,7 +913,7 @@ impl Server { let entries = changes .iter() - .map(|(row, _)| ChangelogentriesInner { + .map(|(row, _)| ChangelogEntry { index: row.id, editgroup_id: row.editgroup_id, timestamp: chrono::DateTime::from_utc(row.timestamp, chrono::Utc), -- cgit v1.2.3