Skip to content

Commit

Permalink
Add missing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
BonnyAD9 committed Dec 14, 2024
1 parent 00c2408 commit 6f8cbd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pareg_core/src/err/arg_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub enum ArgError {
/// There was no value in a key-value pair.
#[error("{0}")]
NoValue(Box<ArgErrCtx>),
/// The value of argument was invalid.
#[error("{0}")]
InvalidValue(Box<ArgErrCtx>),
/// This error happens when you call any of the `cur_*` methods on
Expand Down
1 change: 1 addition & 0 deletions pareg_core/src/proc/from_arg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use proc_macro2::{Literal, TokenStream};
use quote::{quote, ToTokens};
use syn::{punctuated::Punctuated, Data, DeriveInput, LitStr, Meta, Token};

/// Implementation of the derive proc macro for [`crate::FromArg`]
pub fn derive_from_arg(item: TokenStream) -> TokenStream {
let input: DeriveInput = syn::parse(item.into()).unwrap();

Expand Down

0 comments on commit 6f8cbd6

Please sign in to comment.