Skip to content

Commit

Permalink
Add one more comment and remove debug println!
Browse files Browse the repository at this point in the history
Signed-off-by: gabsi26 <[email protected]>
  • Loading branch information
gabsi26 authored and hannobraun committed May 31, 2022
1 parent efed269 commit 78b4756
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/fj-proc/src/attributed_arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ pub fn attributed_arguments(_: TokenStream, input: TokenStream) -> TokenStream {
}.into()
}

/// Represents one parameter given to the `model`
/// `#[value(default=3, min=4)] num_points: u64`
/// `^^^^^^^^^^^^^^^^^^^^^^^^^^ ~~~~~~~~~~ ^^^-- ty`
/// ` | |`
/// ` attr ident`
#[derive(Debug, Clone)]
struct Argument {
pub attr: HelperAttribute,
Expand All @@ -65,8 +70,8 @@ impl Parse for Argument {
let ident: proc_macro2::Ident = input.parse()?;

let _: syn::token::Colon = input.parse()?;

let ty: proc_macro2::Ident = input.parse()?;
println!("attr: {:?}, ident: {:?}, ty: {:?}\n", attr, ident, ty);
Ok(Self { attr, ident, ty })
}
}
Expand Down

0 comments on commit 78b4756

Please sign in to comment.