From 366b50dee76be0b74e9f5349e152c9cef74ec1b8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 26 Nov 2019 13:39:20 +0100 Subject: [PATCH] api-macro: understand a 'Returns:' section in function doc comments Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/src/api.rs | 31 ++++++++++++++++++++++++++----- proxmox-api-macro/tests/api1.rs | 3 +-- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/proxmox-api-macro/src/api.rs b/proxmox-api-macro/src/api.rs index a41a16e4..5e9ab0e4 100644 --- a/proxmox-api-macro/src/api.rs +++ b/proxmox-api-macro/src/api.rs @@ -506,8 +506,32 @@ pub(crate) fn api(_attr: TokenStream, item: TokenStream) -> Result Result