diff options
author | HampusM <hampus@hampusmat.com> | 2022-07-19 12:28:34 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-07-19 12:28:34 +0200 |
commit | ff71b49f014613729237178f0d3ea374f7d72cd5 (patch) | |
tree | 4d0b320fae52f8318139364d4dcd6b424fea735a /syrette_macros/src/lib.rs | |
parent | 58e50e3d9073584064e13edf489fc008b0388149 (diff) |
refactor: use aggressive clippy linting
Diffstat (limited to 'syrette_macros/src/lib.rs')
-rw-r--r-- | syrette_macros/src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/syrette_macros/src/lib.rs b/syrette_macros/src/lib.rs index f686e1e..2981ea7 100644 --- a/syrette_macros/src/lib.rs +++ b/syrette_macros/src/lib.rs @@ -1,3 +1,6 @@ +#![deny(clippy::all)] +#![deny(clippy::pedantic)] + use proc_macro::TokenStream; use quote::quote; use syn::{parse, parse_macro_input}; @@ -20,6 +23,9 @@ use libs::intertrait_macros::gen_caster::generate_caster; /// /// * A interface trait the struct implements. /// +/// # Panics +/// If the attributed item is not a impl. +/// /// # Examples /// ``` /// trait IConfigReader @@ -74,6 +80,9 @@ pub fn injectable(args_stream: TokenStream, impl_stream: TokenStream) -> TokenSt /// Makes a type alias usable as a factory interface. /// +/// # Panics +/// If the attributed item is not a type alias. +/// /// # Examples /// ``` /// trait IUser |