mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
syn2 + structmeta
This commit is contained in:
parent
8b94c0d515
commit
a6b5e67ce8
4 changed files with 64 additions and 23 deletions
|
|
@ -9,7 +9,7 @@ use crate::event::Event;
|
|||
use crate::events::Events;
|
||||
use proc_macro2::TokenStream;
|
||||
use quote::ToTokens;
|
||||
use std::fmt::{Debug, Display};
|
||||
use std::fmt::Display;
|
||||
use syn::{parse_macro_input, DeriveInput, Error, Result};
|
||||
|
||||
/// Derive the `Event` trait for a struct
|
||||
|
|
@ -44,7 +44,7 @@ trait Derivable {
|
|||
fn derive(params: Self::Params) -> Result<TokenStream>;
|
||||
}
|
||||
|
||||
trait DeriveParams: Sized + Debug {
|
||||
trait DeriveParams: Sized {
|
||||
fn parse(input: &DeriveInput) -> Result<Self>;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue