Skip to content

Commit

Permalink
Extract subcommands into separate trait
Browse files Browse the repository at this point in the history
  • Loading branch information
CreepySkeleton committed Feb 12, 2020
1 parent ae2e00f commit ae574df
Show file tree
Hide file tree
Showing 48 changed files with 679 additions and 885 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ clap-rs.iml

# Auxiliary files
test-results.test
expanded.rs
clap_derive/expanded.rs
5 changes: 1 addition & 4 deletions clap_derive/src/derives/attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ pub struct Attrs {
/// The output of a generation method is not only the stream of new tokens but also the attribute
/// information of the current element. These attribute information may contain valuable information
/// for any kind of child arguments.
pub struct GenOutput {
pub tokens: proc_macro2::TokenStream,
pub attrs: Attrs,
}
pub type GenOutput = (proc_macro2::TokenStream, Attrs);

impl Method {
pub fn new(name: Ident, args: TokenStream) -> Self {
Expand Down
Loading

0 comments on commit ae574df

Please sign in to comment.