Skip to content

Commit

Permalink
minor: Forgot about debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Sep 29, 2024
1 parent e992c8e commit acc070b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions fieldx_aux/src/meta_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ pub struct FXSynValueArg<T> {
value: T,
}

impl<T> FXSynValueArg<T> {
pub fn value(&self) -> &T {
&self.value
}
}

impl<T: syn::parse::Parse> FromMeta for FXSynValueArg<T> {
fn from_meta(item: &Meta) -> darling::Result<Self> {
eprintln!("SYN VALUE META: {:#?}", item);
Ok(Self {
value: match item {
Meta::List(list) => syn::parse2(list.tokens.clone())?,
Expand All @@ -22,7 +27,6 @@ impl<T: syn::parse::Parse> FromMeta for FXSynValueArg<T> {
}

fn from_list(items: &[NestedMeta]) -> darling::Result<Self> {
eprintln!("SYN VALUE META: {:#?}", items);
Err(darling::Error::unsupported_format("NYI"))
}
}
Expand Down Expand Up @@ -53,6 +57,12 @@ pub struct FXSynTupleArg<T> {
value: T,
}

impl<T> FXSynTupleArg<T> {
pub fn value(&self) -> &T {
&self.value
}
}

macro_rules! from_tuple {
( $( ( $( $ty:ident ),+ ) ),+ $(,)* ) => {
$(
Expand Down

0 comments on commit acc070b

Please sign in to comment.