From ff71b49f014613729237178f0d3ea374f7d72cd5 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 19 Jul 2022 12:28:34 +0200 Subject: refactor: use aggressive clippy linting --- syrette_macros/src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'syrette_macros/src/lib.rs') 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 -- cgit v1.2.3-18-g5258