fix crate-docs and some lints

This commit is contained in:
Dr. Matthias Ratajczak
2023-02-14 15:13:04 +01:00
parent ebca569fed
commit 8d7b931a0c
6 changed files with 25 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ use syn::DeriveInput;
use syn::__private::TokenStream2;
pub fn action(input: TokenStream) -> TokenStream {
let input = syn::parse::<DeriveInput>(input).unwrap();
let input = syn::parse::<DeriveInput>(input).expect("I don't know when this could fail");
let name = &input.ident;
+3
View File
@@ -1,3 +1,6 @@
/*!
Procedural macros for `pacdef`.
*/
#![warn(
clippy::as_conversions,
clippy::option_if_let_else,
+1 -1
View File
@@ -4,7 +4,7 @@ use syn::DeriveInput;
use syn::__private::TokenStream2;
pub fn register(input: TokenStream) -> TokenStream {
let input = syn::parse::<DeriveInput>(input).unwrap();
let input = syn::parse::<DeriveInput>(input).expect("I don't know when this could fail");
let name = &input.ident;