Remove unnecessary main declaration in doctest
(found by clippy)
This commit is contained in:
parent
7e7041fbef
commit
481f4c682c
@ -143,7 +143,6 @@ mod api;
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```rust,ignore
|
/// ```rust,ignore
|
||||||
/// # fn main() {
|
|
||||||
/// pub mod some_endpoint {
|
/// pub mod some_endpoint {
|
||||||
/// use ruma_api_macros::ruma_api;
|
/// use ruma_api_macros::ruma_api;
|
||||||
///
|
///
|
||||||
@ -208,7 +207,6 @@ mod api;
|
|||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
/// # }
|
|
||||||
/// ```
|
/// ```
|
||||||
#[proc_macro]
|
#[proc_macro]
|
||||||
pub fn ruma_api(input: TokenStream) -> TokenStream {
|
pub fn ruma_api(input: TokenStream) -> TokenStream {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user