From b2d5968e0a7ac5576782f54980c930345f4c5298 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 15 May 2018 23:06:05 -0700 Subject: fmt --- rust/src/api_server.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'rust/src') diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs index 200ecdb2..47139363 100644 --- a/rust/src/api_server.rs +++ b/rust/src/api_server.rs @@ -27,15 +27,15 @@ pub struct Server { } impl Server { - fn container_id_get_handler(&self, id: String) -> Result> { let conn = self.db_pool.get().expect("db_pool error"); let id = uuid::Uuid::parse_str(&id)?; - let res: ::std::result::Result<(ContainerIdentRow, ContainerRevRow), _> = container_ident::table - .find(id) - .inner_join(container_rev::table) - .first(&conn); + let res: ::std::result::Result<(ContainerIdentRow, ContainerRevRow), _> = + container_ident::table + .find(id) + .inner_join(container_rev::table) + .first(&conn); let (ident, rev) = match res { Ok(r) => r, @@ -101,7 +101,6 @@ impl Server { } impl Api for Server { - fn container_id_get( &self, id: String, @@ -129,9 +128,10 @@ impl Api for Server { ) -> Box + Send> { let conn = self.db_pool.get().expect("db_pool error"); - let res: ::std::result::Result<(ContainerIdentRow, ContainerRevRow), _> = container_ident::table - .inner_join(container_rev::table) - .first(&conn); + let res: ::std::result::Result<(ContainerIdentRow, ContainerRevRow), _> = + container_ident::table + .inner_join(container_rev::table) + .first(&conn); // XXX: actually do a filter/lookup let (ident, rev) = match res { -- cgit v1.2.3