Skip to content

Commit

Permalink
Update structopt-derive/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume P. <[email protected]>
  • Loading branch information
njeffords and TeXitoi authored Jun 24, 2021
1 parent c174294 commit e26074e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion structopt-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ fn gen_paw_impl(_: &ImplGenerics, _: &Ident, _: &TypeGenerics, _: &TokenStream)
fn split_structopt_generics_for_impl(generics: &Generics) -> (ImplGenerics, TypeGenerics, TokenStream) {
use syn::{ token::Add, TypeParamBound::Trait };

fn path_is_structop(path: &Path) -> bool {
fn path_is_structopt(path: &Path) -> bool {
path.segments.last().unwrap().ident == "StructOpt"
}

Expand Down

0 comments on commit e26074e

Please sign in to comment.