From 6aee40ac9538f9391c9e630efddf4b39fdad5a50 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 17 May 2018 00:09:46 -0700 Subject: fix api spec --- rust/fatcat-api/examples/server_lib/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/fatcat-api/examples/server_lib') diff --git a/rust/fatcat-api/examples/server_lib/server.rs b/rust/fatcat-api/examples/server_lib/server.rs index 42b6384f..b81af0f8 100644 --- a/rust/fatcat-api/examples/server_lib/server.rs +++ b/rust/fatcat-api/examples/server_lib/server.rs @@ -66,9 +66,9 @@ impl Api for Server { Box::new(futures::failed("Generic failure".into())) } - fn editgroup_post(&self, context: &Context) -> Box + Send> { + fn editgroup_post(&self, body: models::Editgroup, context: &Context) -> Box + Send> { let context = context.clone(); - println!("editgroup_post() - X-Span-ID: {:?}", context.x_span_id.unwrap_or(String::from("")).clone()); + println!("editgroup_post({:?}) - X-Span-ID: {:?}", body, context.x_span_id.unwrap_or(String::from("")).clone()); Box::new(futures::failed("Generic failure".into())) } -- cgit v1.2.3