Use cargo workspace lints

This commit is contained in:
Joscha 2024-04-25 20:36:14 +02:00
parent 131b581880
commit db529688e9
8 changed files with 21 additions and 33 deletions

View file

@ -11,3 +11,6 @@ syn = "2.0.48"
[lib]
proc-macro = true
[lints]
workspace = true

View file

@ -1,14 +1,3 @@
#![forbid(unsafe_code)]
// Rustc lint groups
#![warn(future_incompatible)]
#![warn(rust_2018_idioms)]
#![warn(unused)]
// Rustc lints
#![warn(noop_method_call)]
#![warn(single_use_lifetimes)]
// Clippy lints
#![warn(clippy::use_self)]
use syn::{parse_macro_input, DeriveInput};
mod document;