mirror of
https://github.com/OMGeeky/tarpc.git
synced 2025-12-30 08:08:58 +01:00
Add doc comment to generated module
This commit is contained in:
@@ -50,7 +50,7 @@ macro_rules! request_variant {
|
||||
#[macro_export]
|
||||
macro_rules! rpc_service { ($server:ident:
|
||||
$( $fn_name:ident( $( $arg:ident : $in_:ty ),* ) -> $out:ty;)*) => {
|
||||
#[allow(dead_code)]
|
||||
#[doc="A module containing an rpc service and client stub."]
|
||||
pub mod $server {
|
||||
use std::net::ToSocketAddrs;
|
||||
use std::io;
|
||||
@@ -149,6 +149,7 @@ macro_rules! rpc_service { ($server:ident:
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[allow(dead_code)]
|
||||
mod test {
|
||||
|
||||
rpc_service!(my_server:
|
||||
|
||||
Reference in New Issue
Block a user